var hdTubePath = '/hdtube/';

/* -- Stop editing here... -- */
document.write('<style type="text/css" media="screen">');document.write('img.hdtube_on { background: url("'+hdTubePath+'hdbtn.png") 0 -23px no-repeat; width: 33px; height: 23px; border:0; }');document.write('img.hdtube_on:hover { background-position: 0 0; }');document.write('img.hdtube_off { background: url("'+hdTubePath+'hdbtn.png") -33px -23px no-repeat; width: 33px; height: 23px; border:0; }');document.write('img.hdtube_off:hover { background-position: -33px 0; }');document.write('</style>');function hdTube(a,b,c,d,e){a=(a==undefined)?'YOURVIDEOHERE':a;b=(b==undefined)?'640':b;d=(d==undefined)?true:d;e=(e==undefined)?true:e;c=(c=='1')?'1':'0';tube=a;height=(e)?(b/16*9):height=(b/4*3);height=(height+26);hdcode=(d)?'&ap=%2526fmt%3D22':'';a+=hdcode;if(d){src='hdon.png';hdClass='hdtube_on';alt='HD is ON'}else{src='hdoff.png';hdClass='hdtube_off';alt='HD is OFF'}hdTubeFrame(tube,b,height);hdTubeInnerFrame(tube,a,b,height,hdClass,alt,c)}function hdTubeFrame(a,b,c){document.write('<div style="width:'+b+'px; height:'+(c-1)+'px; padding:0; background:#000" id="'+a+'">s</div>')}function hdTubeInnerFrame(a,b,c,d,e,f,g){g=(g=='1')?'&autoplay%3D1':'';object='<object width="'+c+'" height="'+d+'" style="z-index:1000"><param value="http://www.youtube.com/v/'+b+g+'" name="movie" /><param value="window" name="wmode" /><param value="true" name="allowFullScreen" value="true" /><embed width="'+c+'" height="'+d+'" wmode="window" allowfullscreen="true" type="application/x-shockwave-flash" src="http://www.youtube.com/v/'+b+g+'"></embed></object>';object+='<a href="#" onclick="hdTubeSwitch(\''+a+'\');return false;" style="height:23px; width:34px;"><img class="'+e+'" src="'+hdTubePath+'pxl.png" alt="'+f+'" title="'+f+'" style="height:23px; width:34px;margin:-24px 0 1px '+(c-34)+'px;z-index:1001" /></a>';document.getElementById(a).innerHTML=object}function hdTubeSwitch(a){tubeDiv=document.getElementById(a);tubeObject=tubeDiv.getElementsByTagName('object')[0];width=tubeObject.width;height=tubeObject.height;if(tubeDiv.getElementsByTagName('img')[0].alt=='HD is OFF'){src='hdon.png';hdClass='hdtube_on';alt='HD is ON';video=a+'&ap=%2526fmt%3D22'}else{src='hdoff.png';hdClass='hdtube_off';alt='HD is OFF';video=a}hdTubeInnerFrame(a,video,width,height,hdClass,alt,1)}