function show_support()
{
if(document.getElementById("support_sub").style.display=="none")
{
	document.getElementById("support_sub").style.display="";
	document.getElementById("support_add").style.display="none";
	document.getElementById("supportblock").style.display="";
}
else
{
	document.getElementById("support_sub").style.display="none";
	document.getElementById("support_add").style.display="";
	document.getElementById("supportblock").style.display="none";
}
}
function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){if(oldonload){oldonload();}func();}}}
function getURLParam(p){var r="";var h=window.location.href;if(h.indexOf("?")>-1){var q=h.substr(h.indexOf("?")).toLowerCase();var aq=q.split("&");for(var i=0;i<aq.length;i++){if(aq[i].indexOf(p.toLowerCase()+"=")>-1){var ap=aq[i].split("=");r=ap[1];break;}}}return unescape(r);}
function setpf(){var pf=readCookie("pf");var usercountry=readCookie("usercountry");pf=parseFloat(pf);if(pf==0||isNaN(pf)||usercountry==""||isNaN(usercountry)||usercountry.length<2||getURLParam('ip').length>3){ajax_price_factor(SITE_LINK_URL+"/cart/setcountry.php?ip="+getURLParam('ip'));}if(usercountry.toLowerCase()=="in"){countrybanner=document.getElementById('countrybanner');if(isValidObject(countrybanner)){countrybanner.innerHTML="<a href='http://www.ucertify.in' title='Pay in Indian Rs.'><img src='"+SITE_LINK_URL+"/images/ucertify-india.gif'></a>";}}}
function af(){var afid;afid=getURLParam('af');var afl=(afid?afid.length:0);if(afl>3){createCookie('ucafid',afid,30);}else{afid=readCookie('ucafid');afl=(afid?afid.length:0);}if(afl>3){var refrer;refrer=escape(document.referrer);clickpage=SITE_LINK_URL+"/affiliate/clickcount.php?ref="+refrer;ajax_loadContent('afid',clickpage,3,"");}}
function isValidObject(objToTest){if(null==objToTest)return false;if("undefined"==typeof(objToTest))return false;return true;}
function ajax_set_price_factor(aI,url){try{createPFCookies(daX[aI].response);}catch(err){}if(enableCache){jsCache[url]=daX[aI].response;}daX[aI]=false;}
function ajax_price_factor(url){if(enableCache&&jsCache[url]){createPFCookies(jsCache[url]);return;}var aI=daX.length;daX[aI]=new sack();daX[aI].requestFile=url;daX[aI].onCompletion=function(){ajax_set_price_factor(aI,url);};daX[aI].runAJAX();}
function createPFCookies(str){var data=str.split("|");if(data[1].length==2){createCookie('usercountry',data[1],30);}data[2]=parseFloat(data[2]);if(data[2]==0||isNaN(data[2])){data[2]=1;}createCookie('pf',data[2],3);if(typeof ccurrencymenu=='function'){ccurrencymenu(readCookie("currencycode"));}}
function CheckNull(lvar){var len=lvar.length;for(i=0;i<len;i++){if(lvar.charAt(i)!=" "){return false;}}return true;}
function echeck(str){var at="@";var dot=".";var lat=str.indexOf(at);var lstr=str.length;var ldot=str.indexOf(dot);if(str.indexOf(at)==-1){alert("Invalid E-mail ID");return false;}if(str.indexOf(at)==-1||str.indexOf(at)==0||str.indexOf(at)==lstr){alert("Invalid E-mail ID");return false;}if(str.indexOf(dot)==-1||str.indexOf(dot)==0||str.indexOf(dot)==lstr){alert("Invalid E-mail ID");return false;}if(str.indexOf(at,(lat+1))!=-1){alert("Invalid E-mail ID");return false;}if(str.substring(lat-1,lat)==dot||str.substring(lat+1,lat+2)==dot){alert("Invalid E-mail ID");return false;}if(str.indexOf(dot,(lat+2))==-1){alert("Invalid E-mail ID");return false;}if(str.indexOf(" ")!=-1){alert("Invalid E-mail ID");return false;}return true;}
function sack(file){this.AjaxFailedAlert="Your browser does not support the enhanced functionality of this website.\n";this.requestFile=file;this.method="POST";this.URLString="";this.encodeURIString=true;this.execute=false;this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.createAJAX=function(){try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(err){this.xmlhttp=null;}};if(!this.xmlhttp&&typeof XMLHttpRequest!="undefined")this.xmlhttp=new XMLHttpRequest();if(!this.xmlhttp){this.failed=true;}};this.setVar=function(name,value){if(this.URLString.length<3){this.URLString=name+"="+value;}else{this.URLString+="&"+name+"="+value;}};this.encVar=function(name,value){var varString=encodeURIComponent(name)+"="+encodeURIComponent(value);return varString;};this.encodeURLString=function(string){varArray=string.split('&');for(i=0;i<varArray.length;i++){urlVars=varArray[i].split('=');if(urlVars[0].indexOf('amp;')!=-1){urlVars[0]=urlVars[0].substring(4);};varArray[i]=this.encVar(urlVars[0],urlVars[1]);};return varArray.join('&');};this.runResponse=function(){eval(this.response);};this.runAJAX=function(urlstring){this.responseStatus=new Array(2);if(this.failed&&this.AjaxFailedAlert){alert(this.AjaxFailedAlert);}else{if(urlstring){if(this.URLString.length){this.URLString=this.URLString+"&"+urlstring;}else{this.URLString=urlstring;}}if(this.encodeURIString);{var timeval=new Date().getTime();this.URLString=this.encodeURLString(this.URLString);this.setVar("rndval",timeval);}if(this.element){this.elementObj=document.getElementById(this.element);}if(this.xmlhttp){var self=this;if(this.method=="GET"){var totalurlstring=this.requestFile+"?"+this.URLString;try{this.xmlhttp.open(this.method,totalurlstring,true);}catch(e){}}else{try{this.xmlhttp.open(this.method,this.requestFile,true);}catch(e){}}if(this.method=="POST"){try{this.xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded')}catch(e){}}try{this.xmlhttp.send(this.URLString);}catch(e){}this.xmlhttp.onreadystatechange=function(){switch(self.xmlhttp.readyState){case 1:self.onLoading();break;case 2:self.onLoaded();break;case 3:self.onInteractive();break;case 4:self.response=self.xmlhttp.responseText;self.responseXML=self.xmlhttp.responseXML;self.responseStatus[0]=self.xmlhttp.status;self.responseStatus[1]=self.xmlhttp.statusText;self.onCompletion();if(self.execute){self.runResponse();}if(self.elementObj){var elemNodeName=self.elementObj.nodeName;elemNodeName.toLowerCase();if(elemNodeName=="input"||elemNodeName=="select"||elemNodeName=="option"||elemNodeName=="textarea"){self.elementObj.value=self.response;}else{self.elementObj.innerHTML=self.response;}}self.URLString="";break;}};}}};this.createAJAX();}
function Pause(duration,busy){this.duration=duration*1000;this.busywork=null;this.runner=0;if(arguments.length==2){this.busywork=busy;}this.pause(this.duration);}Pause.prototype.pause=function(duration){if((duration==null)||(duration<0)){return;}var later=(new Date()).getTime()+duration;while(true){if((new Date()).getTime()>later){break;}this.runner++;if(this.busywork!=null){this.busywork(this.runner);}}}
var enableCache=true;var jsCache=new Array();var daX=new Array();function ajax_showContent(divId,aI,url){if(divId!=""){try{document.getElementById(divId).innerHTML=daX[aI].response;}catch(err){}if(enableCache){jsCache[url]=daX[aI].response;}}daX[aI]=false;}
function ajax_loadContent(divId,url,pausesec,msg){if(enableCache&&jsCache[url]){document.getElementById(divId).innerHTML=jsCache[url];return;}var aI=daX.length;if(divId!=""){}else{}daX[aI]=new sack();daX[aI].requestFile=url;daX[aI].onCompletion=function(){ajax_showContent(divId,aI,url);};daX[aI].runAJAX();if(pausesec>0){var p=new Pause(pausesec);}}
var aS=new sack();function getFormData(formObj){totalElement=formObj.elements.length;str='';for(i=0;i<totalElement;i++){elements=formObj.elements[i];elementName=elements.name;elementType=elements.type;elementValue='';if(elementType=='radio'){if(elements.checked){elementValue=elements.value;str+="&"+elementName+"="+elementValue;}}else if(elementType=='checkbox'){if(elements.checked){elementValue=elements.value;str+="&"+elementName+"="+elementValue;}}else if(elementType=='text'){elementValue=elements.value;str+="&"+elementName+"="+elementValue;}else if(elementType=='textarea'){elementValue=elements.value;for(e=1;e<100;e++){elementValue=elementValue.replace(/\n/,'<br>');}str+="&"+elementName+"="+elementValue;}else if(elementType=='hidden'){elementValue=elements.value;str+="&"+elementName+"="+elementValue;}else if(elementType=='select-multiple'){sTotOpt=elements.options.length;add="";for(s=0;s<sTotOpt;s++){if(elements.options[s].selected){elementValue+=add+elements.options[s].value;add=",";}}str+="&"+elementName+"="+elementValue;}else if(elementType=='select-one'){sTotOpt=elements.options.length;for(s=0;s<sTotOpt;s++){if(elements.options[s].selected){elementValue+=elements.options[s].value;}}str+="&"+elementName+"="+elementValue;}}return str;}
function submitAjaxForm(divId,ajaxURL,formObj,otherData,pausesec){formData=getFormData(formObj);url=ajaxURL+formData+"&"+otherData;ajax_loadContent(divId,url,pausesec);}
function roundoff(n){var s="A";s+=n;ln=s.length;p=s.indexOf(".");if(p==-1){s+=".00";}else if((ln-p)==1){s+="00";}else if((ln-p)==2){s+="0";}return s.split("A")[1];}
function ccurrency(o){cd=o.value;co=o.options[o.selectedIndex];cratio=co.getAttribute('cratio');aprice=document.getElementById("oprice").value;anet=document.getElementById("onet").value;document.getElementById("currency").innerHTML=cd;document.getElementById("net").innerHTML=roundoff(parseInt(anet*cratio*100)/100);document.getElementById("price").innerHTML=roundoff(parseInt(aprice*cratio*100)/100);createCookie("currencycode",cd,30);}
function createCookie(n,v,d){if(d){var dt=new Date();dt.setTime(dt.getTime()+(d*24*60*60*1000));var ex="; expires="+dt.toGMTString();}else var ex="";document.cookie=n+"="+v+ex+"; path=/";}
function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}return null;}
function eraseCookie(name){createCookie(name,"",-1);}
function addCommas(nStr){nStr+='';x=nStr.split('.');x1=x[0];x2=x.length>1?'.'+x[1]:'';var rgx=/(\d+)(\d{3})/;while(rgx.test(x1)){x1=x1.replace(rgx,'$1'+','+'$2');}return x1+x2;}
var cssdropdown={disappeardelay:250,disablemenuclick:false,enableswipe:1,enableiframeshim:0,dropmenuobj:null,ie:document.all,firefox:document.getElementById&&!document.all,swipetimer:undefined,bottomclip:0,getposOffset:function(what,offsettype){var totaloffset=(offsettype=="left")?what.offsetLeft:what.offsetTop;var parentEl=what.offsetParent;while(parentEl!=null){totaloffset=(offsettype=="left")?totaloffset+parentEl.offsetLeft:totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}
return totaloffset;},swipeeffect:function(){if(this.bottomclip<parseInt(this.dropmenuobj.offsetHeight)){this.bottomclip+=10+(this.bottomclip/10)
this.dropmenuobj.style.clip="rect(0 auto "+this.bottomclip+"px 0)"}
else
return
this.swipetimer=setTimeout("cssdropdown.swipeeffect()",10)},showhide:function(obj,e){if(this.ie||this.firefox)
this.dropmenuobj.style.left=this.dropmenuobj.style.top="-500px"
if(e.type=="click"&&obj.visibility==hidden||e.type=="mouseover"){if(this.enableswipe==1){if(typeof this.swipetimer!="undefined")
clearTimeout(this.swipetimer)
obj.clip="rect(0 auto 0 0)"
this.bottomclip=0
this.swipeeffect()}
obj.visibility="visible"}
else if(e.type=="click")
obj.visibility="hidden"},iecompattest:function(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body},clearbrowseredge:function(obj,whichedge){var edgeoffset=0
if(whichedge=="rightedge"){var windowedge=this.ie&&!window.opera?this.iecompattest().scrollLeft+this.iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth
if(windowedge-this.dropmenuobj.x<this.dropmenuobj.contentmeasure)
edgeoffset=this.dropmenuobj.contentmeasure-obj.offsetWidth}
else{var topedge=this.ie&&!window.opera?this.iecompattest().scrollTop:window.pageYOffset
var windowedge=this.ie&&!window.opera?this.iecompattest().scrollTop+this.iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight
if(windowedge-this.dropmenuobj.y<this.dropmenuobj.contentmeasure){edgeoffset=this.dropmenuobj.contentmeasure+obj.offsetHeight
if((this.dropmenuobj.y-topedge)<this.dropmenuobj.contentmeasure)
edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge}}
return edgeoffset},dropit:function(obj,e,dropmenuID){if(this.dropmenuobj!=null)
this.dropmenuobj.style.visibility="hidden"
this.clearhidemenu()
if(this.ie||this.firefox){obj.onmouseout=function(){cssdropdown.delayhidemenu()}
obj.onclick=function(){return!cssdropdown.disablemenuclick}
this.dropmenuobj=document.getElementById(dropmenuID)
this.dropmenuobj.onmouseover=function(){cssdropdown.clearhidemenu()}
this.dropmenuobj.onmouseout=function(e){cssdropdown.dynamichide(e)}
this.dropmenuobj.onclick=function(){cssdropdown.delayhidemenu()}
this.showhide(this.dropmenuobj.style,e)
this.dropmenuobj.x=this.getposOffset(obj,"left")
this.dropmenuobj.y=this.getposOffset(obj,"top")
this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj,"rightedge")+"px"
this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj,"bottomedge")+obj.offsetHeight+1+"px"
this.positionshim()}},positionshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined"){if(this.dropmenuobj.style.visibility=="visible"){this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px"
this.shimobject.style.height=this.dropmenuobj.offsetHeight+"px"
this.shimobject.style.left=this.dropmenuobj.style.left
this.shimobject.style.top=this.dropmenuobj.style.top}
this.shimobject.style.display=(this.dropmenuobj.style.visibility=="visible")?"block":"none"}},hideshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined")
this.shimobject.style.display='none'},contains_firefox:function(a,b){while(b.parentNode)
if((b=b.parentNode)==a)
return true;return false;},dynamichide:function(e){var evtobj=window.event?window.event:e
if(this.ie&&!this.dropmenuobj.contains(evtobj.toElement))
this.delayhidemenu()
else if(this.firefox&&e.currentTarget!=evtobj.relatedTarget&&!this.contains_firefox(evtobj.currentTarget,evtobj.relatedTarget))
this.delayhidemenu()},delayhidemenu:function(){this.delayhide=setTimeout("cssdropdown.dropmenuobj.style.visibility='hidden'; cssdropdown.hideshim()",this.disappeardelay)},clearhidemenu:function(){if(this.delayhide!="undefined")
clearTimeout(this.delayhide)},startchrome:function(){for(var ids=0;ids<arguments.length;ids++){var menuitems=document.getElementById(arguments[ids]).getElementsByTagName("a")
for(var i=0;i<menuitems.length;i++){if(menuitems[i].getAttribute("rel")){var relvalue=menuitems[i].getAttribute("rel")
menuitems[i].onmouseover=function(e){var event=typeof e!="undefined"?e:window.event
cssdropdown.dropit(this,event,this.getAttribute("rel"))}}}}
if(window.createPopup&&!window.XmlHttpRequest){document.write('<div id="iframeshim"> </div>')
this.shimobject=document.getElementById("iframeshim")}}}