/*file : js/dom type : js v : 20100527*/
function less(form,imputName){var value=parseInt(document.forms[form].elements[imputName].value);document.forms[form].elements[imputName].value=value-1;}
function more(form,imputName){var value=parseInt(document.forms[form].elements[imputName].value);document.forms[form].elements[imputName].value=value+1;}
function ViewSource(){window.location="view-source:"+window.location.href}
function include(src,attributes){try{attributes=attributes||{};attributes.type="text/javascript";attributes.src=src;var script=document.createElement("script");for(aName in attributes)
script[aName]=attributes[aName];document.getElementsByTagName("head")[0].appendChild(script);return true;}catch(e){return false;}}
var Fading={}
Fading.baseopacity=0.8
Fading.increment=0.1
document.write('<style type="text/css">\n')
document.write('.fader{filter:progid:DXImageTransform.Microsoft.alpha(opacity='+Fading.baseopacity*100+'); -moz-opacity:'+Fading.baseopacity+'; opacity:'+Fading.baseopacity+';}\n')
document.write('</style>')
Fading.setopacity=function(obj,value){var targetobject=obj
if(targetobject&&targetobject.filters&&targetobject.filters[0]){if(typeof targetobject.filters[0].opacity=="number")
targetobject.filters[0].opacity=value*100
else
targetobject.style.filter="alpha(opacity="+value*100+")"}
else if(targetobject&&typeof targetobject.style.MozOpacity!="undefined")
targetobject.style.MozOpacity=value
else if(targetobject&&typeof targetobject.style.opacity!="undefined")
targetobject.style.opacity=value
targetobject.currentopacity=value}
Fading.fadeupdown=function(obj,direction){var targetobject=obj
var fadeamount=(direction=="fadeup")?this.increment:-this.increment
if(targetobject&&(direction=="fadeup"&&targetobject.currentopacity<1||direction=="fadedown"&&targetobject.currentopacity>this.baseopacity)){this.setopacity(obj,targetobject.currentopacity+fadeamount)
window["opacityfader"+obj._fadeorder]=setTimeout(function(){Fading.fadeupdown(obj,direction)},50)}}
Fading.clearTimer=function(obj){if(typeof window["opacityfader"+obj._fadeorder]!="undefined")
clearTimeout(window["opacityfader"+obj._fadeorder])}
Fading.isContained=function(m,e){var e=window.event||e
var c=e.relatedTarget||((e.type=="mouseover")?e.fromElement:e.toElement)
while(c&&c!=m)try{c=c.parentNode}catch(e){c=m}
if(c==m)
return true
else
return false}
Fading.fadeinterface=function(obj,e,direction){if(!this.isContained(obj,e)){Fading.clearTimer(obj)
Fading.fadeupdown(obj,direction)}}
Fading.collectElementbyClass=function(classname){var classnameRE=new RegExp("(^|\\s+)"+classname+"($|\\s+)","i")
var pieces=[]
var alltags=document.all?document.all:document.getElementsByTagName("*")
for(var i=0;i<alltags.length;i++){if(typeof alltags[i].className=="string"&&alltags[i].className.search(classnameRE)!=-1)
pieces[pieces.length]=alltags[i]}
return pieces}
Fading.init=function(){var targetobjects=this.collectElementbyClass("fader")
for(var i=0;i<targetobjects.length;i++){targetobjects[i]._fadeorder=i
this.setopacity(targetobjects[i],this.baseopacity)
targetobjects[i].onmouseover=function(e){Fading.fadeinterface(this,e,"fadeup")}
targetobjects[i].onmouseout=function(e){Fading.fadeinterface(this,e,"fadedown")}}}
function jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore)selObj.selectedIndex=0;}
var dom=net=iex=false;if(document.getElementById)dom=true;if(document.layers)net=true;if(document.all)iex=true;var initialwidth,initialheight
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all
function iecompattest(){return(!window.opera&&document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function loadwindow(url,width,height){if(!ie5&&!ns6)
window.open(url,"","width=width,height=height,scrollbars=1")
else{document.getElementById("dwindow").style.display=''
document.getElementById("dwindow").style.width=initialwidth=width+"%"
document.getElementById("dwindow").style.height=initialheight=height+"%"
document.getElementById("dwindow").style.left="5%"
document.getElementById("dwindow").style.top=ns6?window.pageYOffset*1+25+"px":iecompattest().scrollTop*1+25+"px"
document.getElementById("cframe").src=url}}
function loadplayer(url,width,height){if(!ie5&&!ns6)
window.open(url,"","width=width,height=height,scrollbars=1")
else{document.getElementById("dwindow").style.display=''
document.getElementById("dwindow").style.width=initialwidth=width+"px"
document.getElementById("dwindow").style.height=initialheight=height+"px"
document.getElementById("dwindow").style.left="400px"
document.getElementById("dwindow").style.top=ns6?window.pageYOffset*1+225+"px":iecompattest().scrollTop*1+225+"px"
document.getElementById("cframe").src=url}}
function closeit(){document.getElementById("dwindow").style.display="none"}
var Drag={obj:null,init:function(o,oRoot,minX,maxX,minY,maxY,bSwapHorzRef,bSwapVertRef,fXMapper,fYMapper)
{o.onmousedown=Drag.start;o.hmode=bSwapHorzRef?false:true;o.vmode=bSwapVertRef?false:true;o.root=oRoot&&oRoot!=null?oRoot:o;if(o.hmode&&isNaN(parseInt(o.root.style.left)))o.root.style.left="0px";if(o.vmode&&isNaN(parseInt(o.root.style.top)))o.root.style.top="0px";if(!o.hmode&&isNaN(parseInt(o.root.style.right)))o.root.style.right="0px";if(!o.vmode&&isNaN(parseInt(o.root.style.bottom)))o.root.style.bottom="0px";o.minX=typeof minX!='undefined'?minX:null;o.minY=typeof minY!='undefined'?minY:null;o.maxX=typeof maxX!='undefined'?maxX:null;o.maxY=typeof maxY!='undefined'?maxY:null;o.xMapper=fXMapper?fXMapper:null;o.yMapper=fYMapper?fYMapper:null;o.root.onDragStart=new Function();o.root.onDragEnd=new Function();o.root.onDrag=new Function();},start:function(e)
{var o=Drag.obj=this;e=Drag.fixE(e);var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);o.root.onDragStart(x,y);o.lastMouseX=e.clientX;o.lastMouseY=e.clientY;if(o.hmode){if(o.minX!=null)o.minMouseX=e.clientX-x+o.minX;if(o.maxX!=null)o.maxMouseX=o.minMouseX+o.maxX-o.minX;}else{if(o.minX!=null)o.maxMouseX=-o.minX+e.clientX+x;if(o.maxX!=null)o.minMouseX=-o.maxX+e.clientX+x;}
if(o.vmode){if(o.minY!=null)o.minMouseY=e.clientY-y+o.minY;if(o.maxY!=null)o.maxMouseY=o.minMouseY+o.maxY-o.minY;}else{if(o.minY!=null)o.maxMouseY=-o.minY+e.clientY+y;if(o.maxY!=null)o.minMouseY=-o.maxY+e.clientY+y;}
document.onmousemove=Drag.drag;document.onmouseup=Drag.end;return false;},drag:function(e)
{e=Drag.fixE(e);var o=Drag.obj;var ey=e.clientY;var ex=e.clientX;var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);var nx,ny;if(o.minX!=null)ex=o.hmode?Math.max(ex,o.minMouseX):Math.min(ex,o.maxMouseX);if(o.maxX!=null)ex=o.hmode?Math.min(ex,o.maxMouseX):Math.max(ex,o.minMouseX);if(o.minY!=null)ey=o.vmode?Math.max(ey,o.minMouseY):Math.min(ey,o.maxMouseY);if(o.maxY!=null)ey=o.vmode?Math.min(ey,o.maxMouseY):Math.max(ey,o.minMouseY);nx=x+((ex-o.lastMouseX)*(o.hmode?1:-1));ny=y+((ey-o.lastMouseY)*(o.vmode?1:-1));if(o.xMapper)nx=o.xMapper(y)
else if(o.yMapper)ny=o.yMapper(x)
Drag.obj.root.style[o.hmode?"left":"right"]=nx+"px";Drag.obj.root.style[o.vmode?"top":"bottom"]=ny+"px";Drag.obj.lastMouseX=ex;Drag.obj.lastMouseY=ey;Drag.obj.root.onDrag(nx,ny);return false;},end:function(){document.onmousemove=null;document.onmouseup=null;Drag.obj.root.onDragEnd(parseInt(Drag.obj.root.style[Drag.obj.hmode?"left":"right"]),parseInt(Drag.obj.root.style[Drag.obj.vmode?"top":"bottom"]));Drag.obj=null;},fixE:function(e){if(typeof e=='undefined')e=window.event;if(typeof e.layerX=='undefined')e.layerX=e.offsetX;if(typeof e.layerY=='undefined')e.layerY=e.offsetY;return e;}};function toggle_visibility(id){var e=document.getElementById(id);if(e.style.display=='block')e.style.display='none';else e.style.display='block';}
function Hide(){document.getElementById('tab_home').style.display="none";document.getElementById('tab_vinyl').style.display="none";document.getElementById('tab_find').style.display="none";document.getElementById('tab_mail').style.display="none";}
function Show(tab){var tab=document.getElementById(tab);tab.style.display="block";}
