// Book mark this site....

/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}



//for time clock..


function jsClockTimeZone(){
 
  var TimezoneOffset = -4  // adjust for time zone
  var localTime = new Date()
  var ms = localTime.getTime() 
             + (localTime.getTimezoneOffset() * 60000)
             + TimezoneOffset * 3600000
  var time =  new Date(ms) 
  var hour = time.getHours() 
  var minute = time.getMinutes()
  var second = time.getSeconds()
  var temp = "" + ((hour > 12) ? hour - 12 : hour)
  if(hour==0) temp = "12"
  if(temp.length==1) temp = " " + temp
  temp += ((minute < 10) ? ":0" : ":") + minute
  temp += ((second < 10) ? ":0" : ":") + second
  temp += (hour >= 12) ? " PM&nbsp;EST" : " AM&nbsp;EST"
  document.getElementById("digits").innerHTML = temp;
  //document.clockFormTimeZone.digits.value = temp
  setTimeout("jsClockTimeZone()",1000)
  }
//-->
// add to lay out // 

var addtoLayout='';						// addtoLayout: 0=Horizonal 1 row, 1=Horizonal 2 rows, 2=Vertical with icons, 3=Vertical no icons
var addtoMethod=0;						// addtoMethod: 0=direct link, 1=popup 
var AddURL = encodeURIComponent(document.location.href);	// could be set dynamically to your blog post's permalink
var AddTitle = escape(document.title);	// same here, this could be set dymaically instead of the page's current title



/************************************ for tld **********************************************/

function show_register()
{
	document.getElementById('register').style.display='block';
	document.getElementById('reg').style.color="#FFFFFF";
	document.getElementById('ren').style.color="#000099";
	document.getElementById('tran').style.color="#000099";
	document.getElementById('who').style.color="#000099";
	document.getElementById('default').style.display='none';
	document.getElementById('transfer').style.display='none';
	document.getElementById('whois').style.display='none';
	document.getElementById('renew').style.display='none';
}

function show_renew()
{
	document.getElementById('renew').style.display='block';
	document.getElementById('default').style.display='none';
	document.getElementById('transfer').style.display='none';
	document.getElementById('whois').style.display='none';
	document.getElementById('register').style.display='none';
	document.getElementById('reg').style.color="#000099";
	document.getElementById('ren').style.color="#FFFFFF";
	document.getElementById('tran').style.color="#000099";
	document.getElementById('who').style.color="#000099";
}

function show_transfer()
{
	document.getElementById('renew').style.display='none';
	document.getElementById('default').style.display='none';
	document.getElementById('transfer').style.display='block';
	document.getElementById('whois').style.display='none';
	document.getElementById('register').style.display='none';
	document.getElementById('reg').style.color="#000099";
	document.getElementById('ren').style.color="#000099";
	document.getElementById('tran').style.color="#FFFFFF";
	document.getElementById('who').style.color="#000099";
}

function show_whois()
{
	document.getElementById('renew').style.display='none';
	document.getElementById('default').style.display='none';
	document.getElementById('transfer').style.display='none';
	document.getElementById('whois').style.display='block';
	document.getElementById('register').style.display='none';
	document.getElementById('reg').style.color="#000099";
	document.getElementById('ren').style.color="#000099";
	document.getElementById('tran').style.color="#000099";
	document.getElementById('who').style.color="#FFFFFF";
}

/*********************** for image swap in index.php **************************/

<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
/*----------------------------------- for site map tree-------------------------*/
function visibleBox(id, status)
{
var Element = document.getElementById(id);
   if (Element) {
    Element.style.display = ((status) ? "" : "none");
   }
}
function servicesplus()
{
visibleBox("plusservice",false);
visibleBox("minusservice",true);
visibleBox("textservices",true);
}
function servicesminus()
{
visibleBox("plusservice",true);
visibleBox("minusservice",false);
visibleBox("textservices",false);
}
function helpplus()
{
visibleBox("plushelp",false);
visibleBox("minushelp",true);
visibleBox("texthelp",true);
}
function helpminus()
{
visibleBox("plushelp",true);
visibleBox("minushelp",false);
visibleBox("texthelp",false);
}
function resourceplus()
{
visibleBox("plusresource",false);
visibleBox("minusresource",true);
visibleBox("textresource",true);
}
function resourceminus()
{
visibleBox("plusresource",true);
visibleBox("minusresource",false);
visibleBox("textresource",false);
}
function legalplus()
{
visibleBox("pluslegal",false);
visibleBox("minuslegal",true);
visibleBox("textlegal",true);
}
function legalminus()
{
visibleBox("pluslegal",true);
visibleBox("minuslegal",false);
visibleBox("textlegal",false);
}
function otherplus()
{
visibleBox("plusother",false);
visibleBox("minusother",true);
visibleBox("textother",true);
}
function otherminus()
{
visibleBox("plusother",true);
visibleBox("minusother",false);
visibleBox("textother",false);
}

/*---------- for small ajax boxes in ecommerce solutions page------------*/

var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all

//drag drop function for NS 4////
/////////////////////////////////

var dragswitch=0
var nsx
var nsy
var nstemp

function drag_dropns(name){
if (!ns4)
return
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=gons
temp.onmousemove=dragns
temp.onmouseup=stopns
}

function gons(e){
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}
function dragns(e){
if (dragswitch==1){
temp.moveBy(e.x-nsx,e.y-nsy)
return false
}
}

function stopns(){
temp.releaseEvents(Event.MOUSEMOVE)
}

//drag drop function for ie4+ and NS6////
/////////////////////////////////

function drag_drop(e){
if (ie4&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
return false
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
return false
}
}

function initializedrag(e){
crossobj=ns6? document.getElementById("showimage") : document.all.showimage
var firedobj=ns6? e.target : event.srcElement
var topelement=ns6? "html" : document.compatMode && document.compatMode!="BackCompat"? "documentElement" : "body"
while (firedobj.tagName!=topelement.toUpperCase() && firedobj.id!="dragbar"){
firedobj=ns6? firedobj.parentNode : firedobj.parentElement
}

if (firedobj.id=="dragbar"){
offsetx=ie4? event.clientX : e.clientX
offsety=ie4? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}
document.onmouseup=new Function("dragapproved=false")

////drag drop functions end here//////

function hidebox(){
crossobj=ns6? document.getElementById("showimage") : document.all.showimage
if (ie4||ns6)
crossobj.style.visibility="hidden"
else if (ns4)
document.showimage.visibility="hide"
}
// JavaScript Document