if(window.pathToRoot==null)
pathToRoot="./";webfxMenuDefaultImagePath=pathToRoot+"images/";var op=/opera 5|opera\/5/i.test(navigator.userAgent);var ie=!op&&/msie/i.test(navigator.userAgent);var mz=!op&&/mozilla\/5/i.test(navigator.userAgent);if(ie&&document.getElementById==null){document.getElementById=function(sId){return document.all[sId];};}
webfxLayout={writeTitle:function(s,s2){document.write("<div id='webfx-title-background'></div>");if(op){document.write("<h1 id='webfx-title' style='top:9px;'>"+s+"</h1>");}
else{document.write("<h1 id='webfx-title'>"+s+"</h1>");}
if(s2==null)
s2="WebFX - What you never thought possible!";if(op){document.write("<span id='webfx-sub-title' style='top:46px;'>"+s2+"</span>");}
else{document.write("<span id='webfx-sub-title'>"+s2+"</span>");}},writeMainTitle:function(){this.writeTitle("WebFX","What you never thought possible!");},writeTopMenuBar:function(){document.write("<div id='webfx-menu-bar-1'></div>");if(op){document.write("<style>.webfx-menu-bar a {padding-top:3px;}</style>");document.write("<div id='webfx-menu-bar-2' style='height:2px;'></div>");}
else
document.write("<div id='webfx-menu-bar-2'></div>");document.write("<div id='webfx-menu-bar'>");},writeBottomMenuBar:function(){document.write("</div>");if(op)
document.write("<div id='webfx-menu-bar-3' style='height:0px;'></div>");else
document.write("<div id='webfx-menu-bar-3'></div>");document.write("<div id='webfx-menu-bar-4'></div>");document.write("<div id='webfx-menu-bar-5'></div>");},writeMenu:function(){this.writeTopMenuBar();document.write("<div class='webfx-menu-bar'><a href='http://webfx.eae.net'>WebFX Home</a></div>");this.writeBottomMenuBar();},writeDesignedByEdger:function(){if(ie&&document.body.currentStyle.writingMode!=null)
document.write("<div id='webfx-about'>Page designed and maintained by "+"<a href='mailto:erik@eae.net'>Erik Arvidsson</a> &amp; "+"<a href='mailto:eae@eae.net'>Emil A Eklund</a>.</div>");}};if(ie&&window.attachEvent){window.attachEvent("onload",function(){var scrollBorderColor="rgb(120,172,255)";var scrollFaceColor="rgb(234,242,255)";with(document.body.style){scrollbarDarkShadowColor=scrollBorderColor;scrollbar3dLightColor=scrollBorderColor;scrollbarArrowColor="black";scrollbarBaseColor=scrollFaceColor;scrollbarFaceColor=scrollFaceColor;scrollbarHighlightColor=scrollFaceColor;scrollbarShadowColor=scrollFaceColor;scrollbarTrackColor="white";}});}
webfxMenuBar={add:function(){}};function WebFXMenu(){this.add=function(){};}
function WebFXMenuItem(){}
function WebFXMenuSeparator(){}
function WebFXMenuButton(){};function hasSupport(){if(typeof hasSupport.support!="undefined")
return hasSupport.support;var ie55=/msie 5\.[56789]/i.test(navigator.userAgent);hasSupport.support=(typeof document.implementation!="undefined"&&document.implementation.hasFeature("html","1.0")||ie55)
if(ie55){document._getElementsByTagName=document.getElementsByTagName;document.getElementsByTagName=function(sTagName){if(sTagName=="*")
return document.all;else
return document._getElementsByTagName(sTagName);};}
return hasSupport.support;}
function WebFXTabPane(el,bUseCookie){if(!hasSupport()||el==null)return;this.element=el;this.element.tabPane=this;this.pages=[];this.selectedIndex=null;this.useCookie=false;this.element.className=this.classNameTag+" "+this.element.className;this.tabRow=document.createElement("div");this.tabRow.className="tab-row";el.insertBefore(this.tabRow,el.firstChild);var tabIndex=0;if(this.useCookie){tabIndex=Number(WebFXTabPane.getCookie("webfxtab_"+this.element.id));if(isNaN(tabIndex))
tabIndex=0;}
this.selectedIndex=tabIndex;var cs=el.childNodes;var n;for(var i=0;i<cs.length;i++){if(cs[i].nodeType==1&&cs[i].className=="tab-page"){this.addTabPage(cs[i]);}}}
WebFXTabPane.prototype.classNameTag="dynamic-tab-pane-control";WebFXTabPane.prototype.setSelectedIndex=function(n){if(this.selectedIndex!=n){if(this.selectedIndex!=null&&this.pages[this.selectedIndex]!=null)
this.pages[this.selectedIndex].hide();this.selectedIndex=n;this.pages[this.selectedIndex].show();if(this.useCookie)
WebFXTabPane.setCookie("webfxtab_"+this.element.id,n);}};WebFXTabPane.prototype.getSelectedIndex=function(){return this.selectedIndex;};WebFXTabPane.prototype.addTabPage=function(oElement){if(!hasSupport())return;if(oElement.tabPage==this)
return oElement.tabPage;var n=this.pages.length;var tp=this.pages[n]=new WebFXTabPage(oElement,this,n);tp.tabPane=this;this.tabRow.appendChild(tp.tab);if(n==this.selectedIndex)
tp.show();else
tp.hide();return tp;};WebFXTabPane.prototype.dispose=function(){this.element.tabPane=null;this.element=null;this.tabRow=null;for(var i=0;i<this.pages.length;i++){this.pages[i].dispose();this.pages[i]=null;}
this.pages=null;};WebFXTabPane.setCookie=function(sName,sValue,nDays){var expires="";if(nDays){var d=new Date();d.setTime(d.getTime()+nDays*24*60*60*1000);expires="; expires="+d.toGMTString();}
document.cookie=sName+"="+sValue+expires+"; path=/";};WebFXTabPane.getCookie=function(sName){var re=new RegExp("(\;|^)[^;]*("+sName+")\=([^;]*)(;|$)");var res=re.exec(document.cookie);return res!=null?res[3]:null;};WebFXTabPane.removeCookie=function(name){setCookie(name,"",-1);};function WebFXTabPage(el,tabPane,nIndex){if(!hasSupport()||el==null)return;this.element=el;this.element.tabPage=this;this.index=nIndex;var cs=el.childNodes;for(var i=0;i<cs.length;i++){if(cs[i].nodeType==1&&cs[i].className=="tab"){this.tab=cs[i];break;}}
var a=document.createElement("A");this.aElement=a;a.href="#";a.onclick=function(){return false;};while(this.tab.hasChildNodes())
a.appendChild(this.tab.firstChild);this.tab.appendChild(a);var oThis=this;this.tab.onclick=function(){oThis.select();};this.tab.onmouseover=function(){WebFXTabPage.tabOver(oThis);};this.tab.onmouseout=function(){WebFXTabPage.tabOut(oThis);};}
WebFXTabPage.prototype.show=function(){var el=this.tab;var s=el.className+" selected";s=s.replace(/ +/g," ");el.className=s;this.element.style.display="block";};WebFXTabPage.prototype.hide=function(){var el=this.tab;var s=el.className;s=s.replace(/ selected/g,"");el.className=s;this.element.style.display="none";};WebFXTabPage.prototype.select=function(){this.tabPane.setSelectedIndex(this.index);};WebFXTabPage.prototype.dispose=function(){this.aElement.onclick=null;this.aElement=null;this.element.tabPage=null;this.tab.onclick=null;this.tab.onmouseover=null;this.tab.onmouseout=null;this.tab=null;this.tabPane=null;this.element=null;};WebFXTabPage.tabOver=function(tabpage){var el=tabpage.tab;var s=el.className+" hover";s=s.replace(/ +/g," ");el.className=s;};WebFXTabPage.tabOut=function(tabpage){var el=tabpage.tab;var s=el.className;s=s.replace(/ hover/g,"");el.className=s;};function setupAllTabs(){if(!hasSupport())return;var all=document.getElementsByTagName("*");var l=all.length;var tabPaneRe=/tab\-pane/;var tabPageRe=/tab\-page/;var cn,el;var parentTabPane;for(var i=0;i<l;i++){el=all[i]
cn=el.className;if(cn=="")continue;if(tabPaneRe.test(cn)&&!el.tabPane)
new WebFXTabPane(el);else if(tabPageRe.test(cn)&&!el.tabPage&&tabPaneRe.test(el.parentNode.className)){el.parentNode.tabPane.addTabPage(el);}}}
function disposeAllTabs(){if(!hasSupport())return;var all=document.getElementsByTagName("*");var l=all.length;var tabPaneRe=/tab\-pane/;var cn,el;var tabPanes=[];for(var i=0;i<l;i++){el=all[i]
cn=el.className;if(cn=="")continue;if(tabPaneRe.test(cn)&&el.tabPane)
tabPanes[tabPanes.length]=el.tabPane;}
for(var i=tabPanes.length-1;i>=0;i--){tabPanes[i].dispose();tabPanes[i]=null;}}
if(typeof window.addEventListener!="undefined")
window.addEventListener("load",setupAllTabs,false);else if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",setupAllTabs);window.attachEvent("onunload",disposeAllTabs);}
else{if(window.onload!=null){var oldOnload=window.onload;window.onload=function(e){oldOnload(e);setupAllTabs();};}
else
window.onload=setupAllTabs;};var offsetxpoint=-60
var offsetypoint=20
var ie=document.all
var ns6=document.getElementById&&!document.all
var enabletip=false
if(ie||ns6)
var tipobj=document.all?document.all["dhtmltooltip"]:document.getElementById?document.getElementById("dhtmltooltip"):""
function ietruebody()
{return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function ddrivetip(thetext,thecolor,thewidth)
{if(ns6||ie)
{if(typeof thewidth!="undefined")tipobj.style.width=thewidth+"px"
if(typeof thecolor!="undefined"&&thecolor!="")tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false}}
function positiontip(e){if(enabletip){var curX=(ns6)?e.pageX:event.clientX+ietruebody().scrollLeft;var curY=(ns6)?e.pageY:event.clientY+ietruebody().scrollTop;var rightedge=ie&&!window.opera?ietruebody().clientWidth-event.clientX-offsetxpoint:window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera?ietruebody().clientHeight-event.clientY-offsetypoint:window.innerHeight-e.clientY-offsetypoint-20
var leftedge=(offsetxpoint<0)?offsetxpoint*(-1):-1000
if(rightedge<tipobj.offsetWidth)
tipobj.style.left=ie?ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px":window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
else if(curX<leftedge)
tipobj.style.left="5px"
else
tipobj.style.left=curX+offsetxpoint+"px"
if(bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie?ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px":window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"}}
function hideddrivetip()
{if(ns6||ie)
{enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor='lightyellow'
tipobj.style.width='300'}}
document.onmousemove=positiontip;var Spry;if(!Spry)Spry={};if(!Spry.Widget)Spry.Widget={};Spry.Widget.CollapsiblePanel=function(element,opts)
{this.element=this.getElement(element);this.focusElement=null;this.hoverClass="CollapsiblePanelTabHover";this.openClass="CollapsiblePanelOpen";this.closedClass="CollapsiblePanelClosed";this.focusedClass="CollapsiblePanelFocused";this.enableAnimation=true;this.enableKeyboardNavigation=true;this.animator=null;this.hasFocus=false;this.contentIsOpen=true;this.openPanelKeyCode=Spry.Widget.CollapsiblePanel.KEY_DOWN;this.closePanelKeyCode=Spry.Widget.CollapsiblePanel.KEY_UP;Spry.Widget.CollapsiblePanel.setOptions(this,opts);this.attachBehaviors();};Spry.Widget.CollapsiblePanel.prototype.getElement=function(ele)
{if(ele&&typeof ele=="string")
return document.getElementById(ele);return ele;};Spry.Widget.CollapsiblePanel.prototype.addClassName=function(ele,className)
{if(!ele||!className||(ele.className&&ele.className.search(new RegExp("\\b"+className+"\\b"))!=-1))
return;ele.className+=(ele.className?" ":"")+className;};Spry.Widget.CollapsiblePanel.prototype.removeClassName=function(ele,className)
{if(!ele||!className||(ele.className&&ele.className.search(new RegExp("\\b"+className+"\\b"))==-1))
return;ele.className=ele.className.replace(new RegExp("\\s*\\b"+className+"\\b","g"),"");};Spry.Widget.CollapsiblePanel.prototype.hasClassName=function(ele,className)
{if(!ele||!className||!ele.className||ele.className.search(new RegExp("\\b"+className+"\\b"))==-1)
return false;return true;};Spry.Widget.CollapsiblePanel.prototype.setDisplay=function(ele,display)
{if(ele)
ele.style.display=display;};Spry.Widget.CollapsiblePanel.setOptions=function(obj,optionsObj,ignoreUndefinedProps)
{if(!optionsObj)
return;for(var optionName in optionsObj)
{if(ignoreUndefinedProps&&optionsObj[optionName]==undefined)
continue;obj[optionName]=optionsObj[optionName];}};Spry.Widget.CollapsiblePanel.prototype.onTabMouseOver=function(e)
{this.addClassName(this.getTab(),this.hoverClass);return false;};Spry.Widget.CollapsiblePanel.prototype.onTabMouseOut=function(e)
{this.removeClassName(this.getTab(),this.hoverClass);return false;};Spry.Widget.CollapsiblePanel.prototype.open=function()
{this.contentIsOpen=true;if(this.enableAnimation)
{if(this.animator)
this.animator.stop();this.animator=new Spry.Widget.CollapsiblePanel.PanelAnimator(this,true,{duration:this.duration,fps:this.fps,transition:this.transition});this.animator.start();}
else
this.setDisplay(this.getContent(),"block");this.removeClassName(this.element,this.closedClass);this.addClassName(this.element,this.openClass);};Spry.Widget.CollapsiblePanel.prototype.close=function()
{this.contentIsOpen=false;if(this.enableAnimation)
{if(this.animator)
this.animator.stop();this.animator=new Spry.Widget.CollapsiblePanel.PanelAnimator(this,false,{duration:this.duration,fps:this.fps,transition:this.transition});this.animator.start();}
else
this.setDisplay(this.getContent(),"none");this.removeClassName(this.element,this.openClass);this.addClassName(this.element,this.closedClass);};Spry.Widget.CollapsiblePanel.prototype.onTabClick=function(e)
{if(this.isOpen())
this.close();else
this.open();this.focus();return this.stopPropagation(e);};Spry.Widget.CollapsiblePanel.prototype.onFocus=function(e)
{this.hasFocus=true;this.addClassName(this.element,this.focusedClass);return false;};Spry.Widget.CollapsiblePanel.prototype.onBlur=function(e)
{this.hasFocus=false;this.removeClassName(this.element,this.focusedClass);return false;};Spry.Widget.CollapsiblePanel.KEY_UP=38;Spry.Widget.CollapsiblePanel.KEY_DOWN=40;Spry.Widget.CollapsiblePanel.prototype.onKeyDown=function(e)
{var key=e.keyCode;if(!this.hasFocus||(key!=this.openPanelKeyCode&&key!=this.closePanelKeyCode))
return true;if(this.isOpen()&&key==this.closePanelKeyCode)
this.close();else if(key==this.openPanelKeyCode)
this.open();return this.stopPropagation(e);};Spry.Widget.CollapsiblePanel.prototype.stopPropagation=function(e)
{if(e.preventDefault)e.preventDefault();else e.returnValue=false;if(e.stopPropagation)e.stopPropagation();else e.cancelBubble=true;return false;};Spry.Widget.CollapsiblePanel.prototype.attachPanelHandlers=function()
{var tab=this.getTab();if(!tab)
return;var self=this;Spry.Widget.CollapsiblePanel.addEventListener(tab,"click",function(e){return self.onTabClick(e);},false);Spry.Widget.CollapsiblePanel.addEventListener(tab,"mouseover",function(e){return self.onTabMouseOver(e);},false);Spry.Widget.CollapsiblePanel.addEventListener(tab,"mouseout",function(e){return self.onTabMouseOut(e);},false);if(this.enableKeyboardNavigation)
{var tabIndexEle=null;var tabAnchorEle=null;this.preorderTraversal(tab,function(node){if(node.nodeType==1)
{var tabIndexAttr=tab.attributes.getNamedItem("tabindex");if(tabIndexAttr)
{tabIndexEle=node;return true;}
if(!tabAnchorEle&&node.nodeName.toLowerCase()=="a")
tabAnchorEle=node;}
return false;});if(tabIndexEle)
this.focusElement=tabIndexEle;else if(tabAnchorEle)
this.focusElement=tabAnchorEle;if(this.focusElement)
{Spry.Widget.CollapsiblePanel.addEventListener(this.focusElement,"focus",function(e){return self.onFocus(e);},false);Spry.Widget.CollapsiblePanel.addEventListener(this.focusElement,"blur",function(e){return self.onBlur(e);},false);Spry.Widget.CollapsiblePanel.addEventListener(this.focusElement,"keydown",function(e){return self.onKeyDown(e);},false);}}};Spry.Widget.CollapsiblePanel.addEventListener=function(element,eventType,handler,capture)
{try
{if(element.addEventListener)
element.addEventListener(eventType,handler,capture);else if(element.attachEvent)
element.attachEvent("on"+eventType,handler);}
catch(e){}};Spry.Widget.CollapsiblePanel.prototype.preorderTraversal=function(root,func)
{var stopTraversal=false;if(root)
{stopTraversal=func(root);if(root.hasChildNodes())
{var child=root.firstChild;while(!stopTraversal&&child)
{stopTraversal=this.preorderTraversal(child,func);try{child=child.nextSibling;}catch(e){child=null;}}}}
return stopTraversal;};Spry.Widget.CollapsiblePanel.prototype.attachBehaviors=function()
{var panel=this.element;var tab=this.getTab();var content=this.getContent();if(this.contentIsOpen||this.hasClassName(panel,this.openClass))
{this.addClassName(panel,this.openClass);this.removeClassName(panel,this.closedClass);this.setDisplay(content,"block");this.contentIsOpen=true;}
else
{this.removeClassName(panel,this.openClass);this.addClassName(panel,this.closedClass);this.setDisplay(content,"none");this.contentIsOpen=false;}
this.attachPanelHandlers();};Spry.Widget.CollapsiblePanel.prototype.getTab=function()
{return this.getElementChildren(this.element)[0];};Spry.Widget.CollapsiblePanel.prototype.getContent=function()
{return this.getElementChildren(this.element)[1];};Spry.Widget.CollapsiblePanel.prototype.isOpen=function()
{return this.contentIsOpen;};Spry.Widget.CollapsiblePanel.prototype.getElementChildren=function(element)
{var children=[];var child=element.firstChild;while(child)
{if(child.nodeType==1)
children.push(child);child=child.nextSibling;}
return children;};Spry.Widget.CollapsiblePanel.prototype.focus=function()
{if(this.focusElement&&this.focusElement.focus)
this.focusElement.focus();};Spry.Widget.CollapsiblePanel.PanelAnimator=function(panel,doOpen,opts)
{this.timer=null;this.interval=0;this.fps=60;this.duration=500;this.startTime=0;this.transition=Spry.Widget.CollapsiblePanel.PanelAnimator.defaultTransition;this.onComplete=null;this.panel=panel;this.content=panel.getContent();this.doOpen=doOpen;Spry.Widget.CollapsiblePanel.setOptions(this,opts,true);this.interval=Math.floor(1000/this.fps);var c=this.content;var curHeight=c.offsetHeight?c.offsetHeight:0;this.fromHeight=(doOpen&&c.style.display=="none")?0:curHeight;if(!doOpen)
this.toHeight=0;else
{if(c.style.display=="none")
{c.style.visibility="hidden";c.style.display="block";}
c.style.height="";this.toHeight=c.offsetHeight;}
this.distance=this.toHeight-this.fromHeight;this.overflow=c.style.overflow;c.style.height=this.fromHeight+"px";c.style.visibility="visible";c.style.overflow="hidden";c.style.display="block";};Spry.Widget.CollapsiblePanel.PanelAnimator.defaultTransition=function(time,begin,finish,duration){time/=duration;return begin+((2-time)*time*finish);};Spry.Widget.CollapsiblePanel.PanelAnimator.prototype.start=function()
{var self=this;this.startTime=(new Date).getTime();this.timer=setTimeout(function(){self.stepAnimation();},this.interval);};Spry.Widget.CollapsiblePanel.PanelAnimator.prototype.stop=function()
{if(this.timer)
{clearTimeout(this.timer);this.content.style.overflow=this.overflow;}
this.timer=null;};Spry.Widget.CollapsiblePanel.PanelAnimator.prototype.stepAnimation=function()
{var curTime=(new Date).getTime();var elapsedTime=curTime-this.startTime;if(elapsedTime>=this.duration)
{if(!this.doOpen)
this.content.style.display="none";this.content.style.overflow=this.overflow;this.content.style.height=this.toHeight+"px";if(this.onComplete)
this.onComplete();return;}
var ht=this.transition(elapsedTime,this.fromHeight,this.distance,this.duration);this.content.style.height=((ht<0)?0:ht)+"px";var self=this;this.timer=setTimeout(function(){self.stepAnimation();},this.interval);};Spry.Widget.CollapsiblePanelGroup=function(element,opts)
{this.element=this.getElement(element);this.opts=opts;this.attachBehaviors();};Spry.Widget.CollapsiblePanelGroup.prototype.setOptions=Spry.Widget.CollapsiblePanel.prototype.setOptions;Spry.Widget.CollapsiblePanelGroup.prototype.getElement=Spry.Widget.CollapsiblePanel.prototype.getElement;Spry.Widget.CollapsiblePanelGroup.prototype.getElementChildren=Spry.Widget.CollapsiblePanel.prototype.getElementChildren;Spry.Widget.CollapsiblePanelGroup.prototype.setElementWidget=function(element,widget)
{if(!element||!widget)
return;if(!element.spry)
element.spry=new Object;element.spry.collapsiblePanel=widget;};Spry.Widget.CollapsiblePanelGroup.prototype.getElementWidget=function(element)
{return(element&&element.spry&&element.spry.collapsiblePanel)?element.spry.collapsiblePanel:null;};Spry.Widget.CollapsiblePanelGroup.prototype.getPanels=function()
{if(!this.element)
return[];return this.getElementChildren(this.element);};Spry.Widget.CollapsiblePanelGroup.prototype.getPanel=function(panelIndex)
{return this.getPanels()[panelIndex];};Spry.Widget.CollapsiblePanelGroup.prototype.attachBehaviors=function()
{if(!this.element)
return;var cpanels=this.getPanels();var numCPanels=cpanels.length;for(var i=0;i<numCPanels;i++)
{var cpanel=cpanels[i];this.setElementWidget(cpanel,new Spry.Widget.CollapsiblePanel(cpanel,this.opts));}};Spry.Widget.CollapsiblePanelGroup.prototype.openPanel=function(panelIndex)
{var w=this.getElementWidget(this.getPanel(panelIndex));if(w&&!w.isOpen())
w.open();};Spry.Widget.CollapsiblePanelGroup.prototype.closePanel=function(panelIndex)
{var w=this.getElementWidget(this.getPanel(panelIndex));if(w&&w.isOpen())
w.close();};Spry.Widget.CollapsiblePanelGroup.prototype.openAllPanels=function()
{var cpanels=this.getPanels();var numCPanels=cpanels.length;for(var i=0;i<numCPanels;i++)
{var w=this.getElementWidget(cpanels[i]);if(w&&!w.isOpen())
w.open();}};Spry.Widget.CollapsiblePanelGroup.prototype.closeAllPanels=function()
{var cpanels=this.getPanels();var numCPanels=cpanels.length;for(var i=0;i<numCPanels;i++)
{var w=this.getElementWidget(cpanels[i]);if(w&&w.isOpen())
w.close();}};;var vZoom={images:new Object(),zoomArea:null,mouse:{'left':0,'top':0},displayImage:null,magnifyingGlass:null,magnifyingGlassImage:null,transparentOverlay:null,loadingArea:null,loadingAreaImage:null,iframe:null,fader:null,identity:-1,dontHide:true,activeProperties:{'image':null,'zoomImage':null,'imagePlacement':null,'scaleX':0,'scaleY':0,'magnifyingGlassBorderWidth':0,'imageBorderWidth':0},matchImage:true,fadeSpeed:15,fadeStrength:5,offsetX:0,offsetY:0,init:function(){if(vZoom.magnifyingGlass){return;}
vZoom.magnifyingGlass=document.createElement('div');vZoom.magnifyingGlass.id='vZoomMagnifier';vZoom.magnifyingGlass.style.position='absolute';vZoom.magnifyingGlassImage=document.createElement('img');vZoom.magnifyingGlassImage.alt='';vZoom.magnifyingGlassImage.id='vZoomMagnifierImage';vZoom.magnifyingGlassImage.style.position='absolute';vZoom.magnifyingGlass.appendChild(vZoom.magnifyingGlassImage);vZoom.zoomArea=document.createElement('div');vZoom.zoomArea.id='vZoomArea';vZoom.zoomArea.style.display='none';vZoom.zoomArea.style.position='absolute';vZoom.zoomArea.style.overflow='hidden';vZoom.zoomArea.style.zIndex=5;vZoom.displayImage=document.createElement('img');vZoom.displayImage.alt='';vZoom.displayImage.style.position='absolute';vZoom.zoomArea.appendChild(vZoom.displayImage);vZoom.transparentOverlay=document.createElement('div');vZoom.transparentOverlay.id='vZoomTransparentOverlay';vZoom.transparentOverlay.style.display='none';vZoom.transparentOverlay.style.position='absolute';vZoom.loadingArea=document.createElement('div');vZoom.loadingArea.id='vZoomLoadingArea';vZoom.loadingArea.style.display='none';vZoom.loadingArea.style.position='absolute';vZoom.loadingArea.style.zIndex='1';vZoom.loadingArea.appendChild(vZoom.loadingAreaImage);vZoom.iframe=document.createElement('iframe');vZoom.iframe.frameBorder=0;vZoom.iframe.style.display='none';vZoom.iframe.style.position='absolute';vZoom.iframe.style.zIndex=4;document.body.appendChild(vZoom.transparentOverlay);document.body.appendChild(vZoom.magnifyingGlass);document.body.appendChild(vZoom.zoomArea);document.body.appendChild(vZoom.loadingArea);document.body.appendChild(vZoom.iframe);vZoom.setDefaults();},setDefaults:function(){if(typeof(vQwfdiUKfgdfP)!='string'){var zoomArea=vZoom.zoomArea.style;var magnifier=vZoom.magnifyingGlass.style;var transparentOverlay=vZoom.transparentOverlay.style;zoomArea.borderWidth='1px';zoomArea.borderColor='#c1c1c1';zoomArea.borderStyle='solid';magnifier.borderWidth='1px';magnifier.borderColor='#c1c1c1';magnifier.borderStyle='solid';magnifier.cursor='pointer';magnifier.overflow='hidden';transparentOverlay.opacity='0 .50';transparentOverlay.backgroundColor='#FFFFFF';transparentOverlay.filter='alpha(opacity=50)';transparentOverlay.cursor='pointer';vZoom.matchImage=true;vZoom.fadeSpeed=15;vZoom.fadeStrength=5;vZoom.offsetX=0;vZoom.offsetY=0;}},findZoomImage:function(src){src=src.toLowerCase();src=src.replace('t.jpg','.jpg');src=src.replace('-.jpg','.jpg');src=src.replace('t.gif','.gif');src=src.replace('-.gif','.gif');return src;},filter:function(path){return path.toLowerCase();return path.toLowerCase().replace(/[\.\-\:\/]/g,'');},add:function(element,largerImageURL){element=v$(element);element.onmouseover=vZoom.onmouseover;if(!vZoom.loadingAreaImage){vZoom.loadingAreaImage=document.createElement('img');if(largerImageURL!="images/")
vZoom.loadingAreaImage.src='images/vzoom.gif';else
vZoom.loadingAreaImage.src='images/pixel_trans.gif';}
if(largerImageURL!=null){vZoom.preloadImage(element.src,largerImageURL);}
else{vZoom.preloadImage(element.src,vZoom.findZoomImage(element.src));}
element.onload=null;},preloadImage:function(smallerImageURL,largerImageURL){if(smallerImageURL&&largerImageURL){var smallImg=new Image();var largeImg=new Image();largeImg.onerror=function(event){largeImg.onerror=null;largeImg.onload=null;largeImg=null;};largeImg.onload=function(event){largeImg.onload=null;largeImg.loaded=true;if(vZoom.activeProperties.zoomImage==largeImg){vZoom.loadingArea.style.display='none';vZoom.activeProperties.image.onmouseover(event);}};smallImg.src=smallerImageURL;largeImg.src=largerImageURL;var imageIndex=vZoom.filter(smallImg.src);if(!vZoom.images[imageIndex]){vZoom.images[imageIndex]=largeImg;}}},fadeIn:function(opacity){if(vZoom.fader){window.clearTimeout(vZoom.fader);vZoom.fader=null;}
vZoom.zoomArea.style.opacity=opacity/100;vZoom.zoomArea.style.filter='alpha(opacity='+opacity+')';vZoom.iframe.style.opacity=opacity/100;vZoom.iframe.style.filter='alpha(opacity='+opacity+')';if(opacity<100){vZoom.fader=window.setTimeout('vZoom.fadeIn('+(opacity+vZoom.fadeStrength)+');',vZoom.fadeSpeed);}},onmouseover:function(event){vZoom.init();var imageIndex=vZoom.filter(this.src);var zoomImage=vZoom.images[imageIndex];if(zoomImage==null){return;}
vZoom.setDefaults();var imagePlacement=vPlacement(this);AttachEvent(document,'mousemove',vZoom.onmousemove);vZoom.activeProperties.image=this;vZoom.activeProperties.zoomImage=zoomImage;vZoom.activeProperties.imagePlacement=imagePlacement;if(zoomImage.loaded!=true){vZoom.loadingArea.style.display='';vZoom.loadingArea.style.left=imagePlacement.left+imagePlacement.width/2-vZoom.loadingAreaImage.offsetWidth/2+'px';vZoom.loadingArea.style.top=imagePlacement.top+imagePlacement.height/2-vZoom.loadingAreaImage.offsetHeight/2+'px';return;}
else{vZoom.loadingArea.style.display='none';if(vZoom.displayImage.src!=zoomImage.src){vZoom.displayImage.src=zoomImage.src;}}
if(vZoom.magnifyingGlassImage.src!=this.src){vZoom.magnifyingGlassImage.src=this.src;}
vZoom.magnifyingGlass.style.display='';vZoom.zoomArea.style.display='';vZoom.transparentOverlay.style.display='';var docWidth=document.documentElement.clientWidth||document.body.clientWidth;var docHeight=document.documentElement.clientHeight||document.body.clientHeight;if(vZoom.matchImage){vZoom.zoomArea.style.width=imagePlacement.width+'px';vZoom.zoomArea.style.height=imagePlacement.height+'px';var zoomImagePlacement={'width':vZoom.zoomArea.offsetWidth,'height':vZoom.zoomArea.offsetHeight};if(zoomImagePlacement.width>imagePlacement.width){vZoom.zoomArea.style.width=parseFloat(vZoom.zoomArea.style.width)-(zoomImagePlacement.width-imagePlacement.width)+'px';}
if(zoomImagePlacement.height>imagePlacement.height){vZoom.zoomArea.style.height=parseFloat(vZoom.zoomArea.style.height)-(zoomImagePlacement.height-imagePlacement.height)+'px';}}
var zoomImagePlacement={'width':vZoom.zoomArea.offsetWidth,'height':vZoom.zoomArea.offsetHeight};var x=imagePlacement.left+imagePlacement.width+vZoom.offsetX;var y=imagePlacement.top+vZoom.offsetY;if(x+zoomImagePlacement.width>docWidth){x=imagePlacement.left-zoomImagePlacement.width-vZoom.offsetX;y=imagePlacement.top-vZoom.offsetY;if(x<0){x=imagePlacement.left+vZoom.offsetX;y=imagePlacement.top+imagePlacement.height+vZoom.offsetY;if(y+zoomImagePlacement.height>docHeight){x=imagePlacement.left-vZoom.offsetX;y=imagePlacement.top-zoomImagePlacement.height-vZoom.offsetY;if(y<0){x=imagePlacement.left+imagePlacement.width+vZoom.offsetX;y=imagePlacement.top+vZoom.offsetY;}}}}
vZoom.zoomArea.style.left=x+'px';vZoom.zoomArea.style.top=y+'px';var scaleX=(vZoom.displayImage.offsetWidth/imagePlacement.width);var scaleY=(vZoom.displayImage.offsetHeight/imagePlacement.height);if(scaleY<1.2||scaleX<1.2){vZoom.hide(null,true);return;}
vZoom.magnifyingGlassImage.onmousedown=vZoom.activeProperties.image.onmousedown;vZoom.magnifyingGlassImage.onmouseup=vZoom.activeProperties.image.onmouseup;vZoom.magnifyingGlassImage.onclick=function(event){var event=window.event||event;if(vZoom.activeProperties.image.onclick){vZoom.activeProperties.image.onclick(event);}
if(vZoom.activeProperties.image.parentNode.nodeName.toUpperCase()=='A'){var anchorTag=vZoom.activeProperties.image.parentNode;if(anchorTag.href){window.location.href=anchorTag.href;}
if(anchorTag.onclick){anchorTag.onclick(event);}}}
if(vZoom.magnifyingGlass.currentStyle){vZoom.activeProperties.magnifyingGlassBorderWidth=parseFloat(vZoom.magnifyingGlass.currentStyle.borderTopWidth)||0;vZoom.activeProperties.imageBorderWidth=parseFloat(this.currentStyle.borderTopWidth)||0;}
else if(document.defaultView&&document.defaultView.getComputedStyle){vZoom.activeProperties.magnifyingGlassBorderWidth=parseFloat(document.defaultView.getComputedStyle(vZoom.magnifyingGlass,null).getPropertyValue('border-top-width'))||0;vZoom.activeProperties.imageBorderWidth=parseFloat(document.defaultView.getComputedStyle(this,null).getPropertyValue('border-top-width'))||0;}
else{vZoom.activeProperties.magnifyingGlassBorderWidth=0;vZoom.activeProperties.imageBorderWidth=0;}
vZoom.magnifyingGlass.style.width=(vZoom.zoomArea.offsetWidth/scaleX)+vZoom.activeProperties.magnifyingGlassBorderWidth+'px';vZoom.magnifyingGlass.style.height=(vZoom.zoomArea.offsetHeight/scaleY)+vZoom.activeProperties.magnifyingGlassBorderWidth+'px';vZoom.activeProperties.scaleX=scaleX;vZoom.activeProperties.scaleY=scaleY;vZoom.transparentOverlay.style.left=imagePlacement.left+vZoom.activeProperties.imageBorderWidth+'px';vZoom.transparentOverlay.style.top=imagePlacement.top+vZoom.activeProperties.imageBorderWidth+'px';vZoom.transparentOverlay.style.width=imagePlacement.width-vZoom.activeProperties.imageBorderWidth*2+'px';vZoom.transparentOverlay.style.height=imagePlacement.height-vZoom.activeProperties.imageBorderWidth*2+'px';vZoom.iframe.style.left=vZoom.zoomArea.style.left;vZoom.iframe.style.top=vZoom.zoomArea.style.top;vZoom.iframe.style.width=vZoom.zoomArea.offsetWidth;vZoom.iframe.style.height=vZoom.zoomArea.offsetHeight;vZoom.iframe.style.display='block';vZoom.onmousemove(event);if(zoomImage.loaded){vZoom.fadeIn(1);}},hide:function(event,force){var target;if(event&&!force){target=event.srcElement?event.srcElement:event.target;}
if(force||(target!=vZoom.loadingAreaImage&&target!=null&&target!=document&&target!=vZoom.magnifyingGlass&&target!=vZoom.activeProperties.image&&target!=vZoom.magnifyingGlassImage&&target!=vZoom.transparentOverlay)){if(vZoom.dontHide&&target==vZoom.images[vZoom.filter(vZoom.activeProperties.image.src)]){vZoom.dontHide=false;}
else{vZoom.dontHide=false;DetachEvent(document,'mousemove',vZoom.onmousemove);vZoom.magnifyingGlass.style.display='none';vZoom.zoomArea.style.display='none';vZoom.transparentOverlay.style.display='none';vZoom.loadingArea.style.display='none';vZoom.iframe.style.display='none';vZoom.mouse.left=0;vZoom.mouse.top=0;vZoom.activeProperties={'image':null,'zoomImage':null,'imagePlacement':null,'scaleX':0,'scaleY':0,'magnifyingGlassBorderWidth':0};return true;}}
return false;},onmousemove:function(event){var event=window.event||event;if(vZoom.hide(event)){return;}
if(event.clientX){var x=document.documentElement.scrollLeft||document.body.scrollLeft;var y=document.documentElement.scrollTop||document.body.scrollTop;x+=event.clientX;y+=event.clientY;}
else{var x=vZoom.mouse.left;var y=vZoom.mouse.top;}
vZoom.mouse.left=x;vZoom.mouse.top=y;var imageIndex=vZoom.filter(vZoom.activeProperties.image.src);if(vZoom.images[imageIndex].loaded!=true){return;}
var magnifyingGlass=vZoom.magnifyingGlass;var magnifyingGlassPlacement={'width':magnifyingGlass.offsetWidth,'height':magnifyingGlass.offsetHeight};var imagePlacement=vZoom.activeProperties.imagePlacement;x-=magnifyingGlassPlacement.width/2;y-=magnifyingGlassPlacement.height/2;if(x<imagePlacement.left+vZoom.activeProperties.imageBorderWidth){x=imagePlacement.left+vZoom.activeProperties.imageBorderWidth;}
else if(x>imagePlacement.left+imagePlacement.width-magnifyingGlassPlacement.width-vZoom.activeProperties.imageBorderWidth){x=imagePlacement.left+imagePlacement.width-magnifyingGlassPlacement.width-vZoom.activeProperties.imageBorderWidth;}
else{}
if(y<imagePlacement.top+vZoom.activeProperties.imageBorderWidth){y=imagePlacement.top+vZoom.activeProperties.imageBorderWidth;}
else if(y>imagePlacement.top+imagePlacement.height-magnifyingGlassPlacement.height-vZoom.activeProperties.imageBorderWidth){y=imagePlacement.top+imagePlacement.height-magnifyingGlassPlacement.height-vZoom.activeProperties.imageBorderWidth;}
magnifyingGlass.style.left=x+'px';magnifyingGlass.style.top=y+'px';x-=imagePlacement.left;y-=imagePlacement.top;if(x<0){x=0;}
if(y<0){y=0;}
x+=vZoom.activeProperties.magnifyingGlassBorderWidth;y+=vZoom.activeProperties.magnifyingGlassBorderWidth;var scaleX=vZoom.activeProperties.scaleX;var scaleY=vZoom.activeProperties.scaleY;vZoom.displayImage.style.left=-x*scaleX+'px';vZoom.displayImage.style.top=-y*scaleY+'px';vZoom.magnifyingGlassImage.style.left=parseFloat(imagePlacement.left)-parseFloat(vZoom.magnifyingGlass.style.left)-vZoom.activeProperties.magnifyingGlassBorderWidth+vZoom.activeProperties.imageBorderWidth+'px';vZoom.magnifyingGlassImage.style.top=parseFloat(imagePlacement.top)-parseFloat(vZoom.magnifyingGlass.style.top)-vZoom.activeProperties.magnifyingGlassBorderWidth+vZoom.activeProperties.imageBorderWidth+'px';}}
function sprops(element){var p;var txt='';for(p in element){txt+='<br />'+p+':';try{txt+=element[p]}catch(e){}}
var div=document.createElement('div');div.innerHTML=txt;document.body.appendChild(div);};function ClearForm()
{var FieldType;for(var i=0;i<document.EditForm.length;i++){FieldType=document.EditForm.elements[i].type
if(FieldType=="text"||FieldType=="textarea"){document.EditForm.elements[i].value=""}
if(FieldType=="select-one"){document.EditForm.elements[i].options.selectedIndex=0}}}
function OpenNewWindow(url,width,height)
{var randomnumber=Math.floor(Math.random()*5001)
window.open(url,randomnumber,"top=10,left=10,menubar=0,resizable=1,scrollbars=1,width="+width+",height="+height)}
function OpenWindowNoScroll(url,width,height){window.open(url,'popup_noscroll',"top=10,left=10,menubar=0,resizable=0,scrollbars=0,width="+width+",height="+height)}
function protect_images2(e){var msg="Sorry, our images are copyrighted.";if(navigator.appName=='Netscape'&&e.which==3){alert(msg);return false;}
if(navigator.appName=='Microsoft Internet Explorer'&&event.button==2){alert(msg);return false;}
else return true;}
function protect_images1(){if(document.images){for(i=0;i<document.images.length;i++){document.images[i].onmousedown=protect_images2;document.images[i].onmouseup=protect_images2;}}}
function OpenSideWindow(url){rightwidth=300;if(document.all){windowheight=screen.availHeight;leftwidth=screen.availWidth-rightwidth-11;SideWindow=window.open(url,'SideWindow','width='+rightwidth+',height='+(windowheight-60)+',screenX='+leftwidth+',screenY=0,top=0,left='+leftwidth+',toolbar=0,location=0,status=1,menubar=0,resizable=1');SideWindow.focus();}else{SideWindow=window.open(url,'','width=280,height=480,toolbar=0,location=0,status=1,menubar=0,resizable=1');}}
function PageName(){var pageName=window.location.href.toLowerCase();if(pageName.indexOf('_p/')!=-1||pageName.indexOf('-p/')!=-1){pageName='productdetails.asp';}
else if(pageName.indexOf('_s/')!=-1||pageName.indexOf('-s/')!=-1){pageName='searchresults.asp';}
else{pageName=pageName.substr(pageName.lastIndexOf("/")+1).replace(/\?[\s\S]*/,"");}
return pageName;}
function PagePath(){return window.location.href.toLowerCase().replace(/http[s]?:\/\/[^\/]*\/?/,"").replace(/\?[\s\S]*/,"");}
function QueryString(name){var qsRE=new RegExp("[?&]"+name+"=([^&]*)","i");var value=qsRE.exec(location.href);return(value)?decode(value[1]):"";}
function GetCookieArray(){if(document.cookie.length>0){var cookieRE=new RegExp("(?:^|;)[\\s]*([^=]*)=([^;]*)","gi");var cookie,cookieArray=new Array();cookie=cookieRE.exec(unescape(document.cookie.toString()))
while(cookie){cookieArray[cookie[1]]=cookie[2];cookie=cookieRE.exec(unescape(document.cookie.toString()))}
return cookieArray;}
return"";}
function GetCookie(name,key,encoded){var value='',cookies=';'+document.cookie;if(cookies.length>1){if(key){var cookieRE=new RegExp(';[\\s]*'+name+'=[^;]*'+key+'=([^&;]*)[^;]*','i')}
else{var cookieRE=new RegExp(';[\\s]*'+name+'=([^;]*)','i');}
value=cookieRE.exec(cookies);value=(value)?value[1]:'';if(!encoded){value=decode(value);}}
return value;}
var c_minutes=1,c_hours=60,c_days=1440,c_years=525600;function SetCookie(name,value,duration,key){var cookie='';if(key){cookie=GetCookie(name,'',true);if(cookie!=''){cookie='&'+cookie;var keyRE=new RegExp('([\\s\\S]*?)(&'+key+'=)[^&]*([\\s\\S]*)','i');if(keyRE.test(cookie)){if(value==''){cookie=cookie.replace(keyRE,'$1$3');}
else{cookie=cookie.replace(keyRE,'$1$2'+encode(value)+'$3');}}
else if(value!=''){cookie+='&'+key+'='+encode(value);}
cookie=cookie.substr(1);}
else if(value==''){cookie='';}
else{cookie=key+'='+encode(value);}}
else if(value!=''){cookie=encode(value);}
if(cookie==''){duration=-1000;}
cookie=name+'='+cookie+';path=/';if(duration){var expireDate=new Date();expireDate.setMinutes(expireDate.getMinutes()+parseInt(duration));cookie=cookie+';expires='+expireDate.toGMTString();}
document.cookie=cookie;return value;}
function encode(value){value=escape(value);value=value.replace(/@/gi,"%40");value=value.replace(/\*/gi,"%2A");value=value.replace(/_/gi,"%5F");value=value.replace(/-/gi,"%2D");value=value.replace(/\+/gi,"%2B");value=value.replace(/\./gi,"%2E");value=value.replace(/\//gi,"%2F");value=value.replace(/%20/gi,"+");return value;}
function decode(value){value=value.replace(/\+/g," ");value=unescape(value);return value;}
function v$(id){if(typeof(id)=='string'){return document.getElementById(id);}
else{return id;}}
function FixEvent(event){if(window.event){var event=window.event;event.target=event.srcElement;}
else{var event=event;}
return event;}
function AttachEvent(element,event,func){if(element.addEventListener){element.addEventListener(event.toLowerCase(),func,false);}
else{element.attachEvent('on'+event.toLowerCase(),func);}}
function DetachEvent(element,event,func){if(element.removeEventListener){element.removeEventListener(event.toLowerCase(),func,false);}
else{element.detachEvent('on'+event.toLowerCase(),func);}}
function ShowHide(Element_ID,Show){var Element=v$(Element_ID);if(Element){Show=eval(Show)
if(typeof(Show)=='undefined'&&Element.style['display']!='none'||Show==false){Element.style['display']='none';return false;}
else{Element.style['display']='';return true;}}}
function vPlacement(element){var isSafari=false;var foundPositionedElement=false;if(navigator.vendor){if(navigator.vendor.toLowerCase().indexOf('apple')!=-1){isSafari=true;var getComputedStyle=document.defaultView.getComputedStyle;}}
var left=element.offsetLeft;var top=element.offsetTop;var parent=element.offsetParent;while(parent){left+=parent.offsetLeft;top+=parent.offsetTop;var position=computedStyle(parent,'position','position');if(parent.nodeName.toLowerCase()!='body'){left-=parent.scrollLeft;top-=parent.scrollTop;}
if(position=='absolute'||position=='relative'){foundPositionedElement=true;}
if(document.all){if(parent.nodeName.toUpperCase()=='TABLE'){left+=(parseFloat(parent.border)||0)?1:0;top+=(parseFloat(parent.border)||0)?1:0;}}
else if(isSafari){if(parent.nodeName.toUpperCase()=='TD'||parent.nodeName.toUpperCase()=='TABLE'){left+=parseFloat(getComputedStyle(parent,null).getPropertyValue('border-left-width'))||0;top+=parseFloat(getComputedStyle(parent,null).getPropertyValue('border-top-width'))||0;}}
parent=parent.offsetParent;}
delete(parent);if(foundPositionedElement){left+=document.documentElement.scrollLeft||document.body.scrollLeft;top+=document.documentElement.scrollTop||document.body.scrollTop;}
return{'left':left,'top':top,'width':element.offsetWidth,'height':element.offsetHeight}}
function vTrim(arg_value){return arg_value.toString().replace(/^[\s]+|[\s]+$/g,'');}
function computedStyle(element,ieStyle,ffStyle){if(element.currentStyle){return element.currentStyle[ieStyle];}
else if(document.defaultView&&document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(element,null).getPropertyValue(ffStyle);}
else{return element.style[ieStyle];}}
var agt='';if(navigator.userAgent){agt=navigator.userAgent.toLowerCase();}
var is_major=parseInt(navigator.appVersion);var is_minor=parseFloat(navigator.appVersion);var is_nav=((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1));var is_nav4=(is_nav&&(is_major==4));var is_nav4up=(is_nav&&(is_major>=4));var is_navonly=(is_nav&&((agt.indexOf(";nav")!=-1)||(agt.indexOf("; nav")!=-1)));var is_nav5=(is_nav&&(is_major==5));var is_nav5up=(is_nav&&(is_major>=5));var is_ie=(agt.indexOf("msie")!=-1);var is_ie3=(is_ie&&(is_major<4));var is_ie4=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.0")==-1));var is_ie4up=(is_ie&&(is_major>=4));var is_ie5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.0")!=-1));var is_ie5up=(is_ie&&!is_ie3&&!is_ie4);
