function showElement(_1){
_1.style.display="block";
_1.style.visibility="visible";
}
function hideElement(_2){
_2.style.display="none";
_2.style.visibility="hidden";
}
function setCookie(_3,_4){
document.cookie=_3+"="+escape(_4)+";path=/";
}
function getCookie(_5){
var _6=document.cookie.indexOf(_5+"=");
var _7=_6+_5.length+1;
if((!_6)&&(_5!=document.cookie.substring(0,_5.length))){
return null;
}
if(_6==-1){
return null;
}
var _8=document.cookie.indexOf(";",_7);
if(_8==-1){
_8=document.cookie.length;
}
return unescape(document.cookie.substring(_7,_8));
}
function getClassName(_9){
if(!_9||_9.getAttribute=="undefined"){
return null;
}
var _a=_9.getAttribute("class");
if(_a==null||_a==""){
_a=_9.getAttribute("className");
}
return _a;
}
function toggleMainProductImage(id,_c){
target_image=document.getElementById("main_product_image");
target_image.src="/images/product_details/"+id+"/";
target_image.alt=_c.alt;
return false;
}
function qty_plus(_d,_e){
var _f=document.getElementById(_d);
if(!_e){
_e=99;
}
if(_f.value<_e){
_f.value=parseInt(_f.value)+1;
}
}
function qty_minus(_10,min){
var qty=document.getElementById(_10);
if(!min){
min=0;
}
if(qty.value>min){
qty.value=parseInt(qty.value)-1;
}
}
var offsetfrommouse=[15,15];
var displayduration=0;
var currentimageheight=270;
if(document.getElementById||document.all){
document.write("<div id=\"trailimageid\">");
document.write("</div>");
}
function gettrailobj(){
if(document.getElementById){
return document.getElementById("trailimageid").style;
}else{
if(document.all){
return document.all.trailimagid.style;
}
}
return "";
}
function gettrailobjnostyle(){
if(document.getElementById){
return document.getElementById("trailimageid");
}else{
if(document.all){
return document.all.trailimagid;
}
}
return "";
}
function truebody(){
return (!window.opera&&document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;
}
function showtrail(_13,_14,_15){
document.onmousemove=followmouse;
newHTML="<div class=\"info_box\">";
newHTML=newHTML+"<h2>"+_13+"</h2>";
newHTML=newHTML+_14+"<br/>";
newHTML=newHTML+"</div>";
gettrailobjnostyle().innerHTML=newHTML;
gettrailobj().display="inline";
}
function hidetrail(){
gettrailobj().innerHTML=" ";
gettrailobj().display="none";
document.onmousemove="";
gettrailobj().left="-500px";
}
function followmouse(e){
var _17=offsetfrommouse[0];
var _18=offsetfrommouse[1];
var _19=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15;
var _1a=document.all?Math.min(truebody().scrollHeight,truebody().clientHeight):Math.min(window.innerHeight);
if(typeof e!="undefined"){
_17=e.pageX-_17-160;
_18+=e.pageY-10;
}else{
if(typeof window.event!="undefined"){
_17=event.clientX+truebody().scrollLeft-_17-160;
_18+=truebody().scrollTop+event.clientY-10;
}
}
var _19=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15;
var _1a=document.all?Math.max(truebody().scrollHeight,truebody().clientHeight):Math.max(document.body.offsetHeight,window.innerHeight);
if(_18<0){
_18=_18*-1;
}
gettrailobj().left=_17+"px";
gettrailobj().top=_18+"px";
}
function TextCounter(_1b,_1c,_1d){
this.field_to_count=document.getElementById(_1b);
this.count_displayer=document.getElementById(_1c);
this.max_limit=_1d;
this.field_to_count.counter=this;
this.field_to_count.onkeydown=this.updateCount;
this.field_to_count.onkeyup=this.updateCount;
this.field_to_count.onkeyup();
}
TextCounter.prototype.updateCount=function(){
if(this.value.length<=this.counter.max_limit){
var _1e=this.counter.max_limit-this.value.length;
var _1f=this.counter.count_displayer.firstChild;
var _20=document.createTextNode(_1e);
this.counter.count_displayer.replaceChild(_20,_1f);
}else{
this.value=this.value.substring(0,this.counter.max_limit);
}
};

