
var BrowserDetection=(function(){var u=navigator.userAgent;var e=false;var c={ie:e,firefox:/firefox/i.test(u),opera:/opera/i.test(u),chrome:/chrome/i.test(u),safari:/safari/i.test(u)&&!/chrome/i.test(u)}
try{if(c.ie)
c.ie=/msie\s([^;]+)/i.exec(u)[1];else if(c.firefox)
c.firefox=/firefox\/([^\s]+)/i.exec(u)[1];else if(c.opera)
c.opera=/opera\/([^\s]+)/i.exec(u)[1];else if(c.chrome)
c.chrome=/chrome\/([^\s]+)/i.exec(u)[1];else if(c.safari)
c.safari=/version\/([^\s]+)/i.exec(u)[1];}catch(e){}
this.client=c;})();window.onDomReady=(function DomReady(fn){(function(i){var u=navigator.userAgent;var e=false;var st=setTimeout;if(/webkit/i.test(u)){st(function(){var dr=document.readyState;if(dr=="loaded"||dr=="complete"){i()}else{st(arguments.callee,10);}},10);}
else if((/mozilla/i.test(u)&&!/(compati)/.test(u))||(/opera/i.test(u))){document.addEventListener("DOMContentLoaded",i,false);}else if(e){(function(){var t=document.createElement('doc:rdy');try{t.doScroll('left');i();t=null;}catch(e){st(arguments.callee,0);}})();}else{window.onload=i;}})
(fn);})
var LastImgPH=null;function PlLineSwitch(Line,ImgID,ChangeClass)
{if(ChangeClass)
Line.className=Line.className.replace(/(BskLine(?:1|2))/,'BsklineHover');if(ImgID)
{ImgPH=document.getElementById('Img'+ImgID);if(ImgPH==LastImgPH)
return;ImgPH.style.visibility='';ImgPH.style.position='';if(LastImgPH)
{LastImgPH.style.visibility='hidden';LastImgPH.style.position='absolute';}
LastImgPH=ImgPH;}}
function PlLineBack(Line,Class)
{Line.className=Class;}
function ClassSwitch(Obj,ClassName)
{Obj.className=ClassName;}
function ImgSwitch(Obj,Url)
{Obj.src=Url;}
function ShowHideElem(Name,Show)
{Elem=document.getElementById(Name);if(Elem)
{if(typeof(Show)=='undefined')
Elem.style.display=(Elem.style.display=='none')?'':'none';else
Elem.style.display=(Show)?'':'none';}}
function ShowPanel(ID,container,refresh)
{if(document.getElementById(ID)==null||refresh)
{var containerElement=document.getElementById(container)||document.body;if(refresh&&document.getElementById(ID)){containerElement.removeChild(document.getElementById(ID));return;}
var XHR=GetHRObject();if(!XHR)
return;XHR.onreadystatechange=function()
{if(XHR.readyState==4&&XHR.status==200)
{var panel=document.createElement('div');panel.innerHTML=XHR.responseText;containerElement.appendChild(panel.firstChild);ShowHideElem(ID);}};XHR.open('GET','/request/Infos.php?op=get-'+ID);XHR.send(null);}
else
ShowHideElem(ID);}
function getElementsByClassName(className,tag,elm)
{var testClass=new RegExp("(^|\\s)"+className+"(\\s|$)");var tag=tag||"*";var elm=elm||document;var elements=(tag=="*"&&elm.all)?elm.all:elm.getElementsByTagName(tag);var returnElements=[];var current;var length=elements.length;for(var i=0;i<length;i++)
{current=elements[i];if(testClass.test(current.className))
returnElements.push(current);}
return returnElements;}
function ProdMediaCreate(UrlVideo,Url360,UrlVideoMk)
{ObjHolder=document.getElementById('MediaHolder');if(ObjHolder)
return;ObjHolder=document.createElement("div");ObjHolder.id='MediaHolder';ObjHolder.style.marginLeft='380px';ObjHolder.style.marginTop='50px';ObjHolder.style.position='absolute';ObjHolder.style.zIndex='20';ObjHolder.className='ProdMedia';Data='<div id="MediaContainer"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="416" height="332" id="playback"><param name="allowScriptAccess" value="sameDomain" /><param name="menu" value="false" /><param name="scale" value="exactfit" /><param name="movie" value="'+UrlVideo+'" /><param name="quality" value="high" /><embed menu="true" src="'+UrlVideo+'" quality="high" width="416" height="332" name="playback" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>'
+'<a id="MediaClose" href="#" onclick="ProdMediaClose(); return false;"></a>'
+'<a id="MediaSwitchVideo" href="#" onclick="ProdMediaSwitch(1, \''+UrlVideo+'\', \''+Url360+'\', \''+UrlVideoMk+'\'); return false;"></a>';if(Url360)
Data+='<a id="MediaSwitch360" href="#" onclick="ProdMediaSwitch(2, \''+UrlVideo+'\', \''+Url360+'\', \''+UrlVideoMk+'\'); return false;"></a>';ObjHolder.innerHTML=Data;Parent=document.getElementById('ProdPicture').parentNode;Parent.insertBefore(ObjHolder,Parent.firstChild);}
function ProdMediaClose()
{ObjHolder=document.getElementById('MediaHolder');if(!ObjHolder)
return;ObjHolder.parentNode.removeChild(ObjHolder);}
function ProdMediaSwitch(Type,UrlVideo,Url360,UrlVideoMk)
{if(!document.getElementById('MediaHolder'))
ProdMediaCreate(UrlVideo,Url360,UrlVideoMk);Container=document.getElementById('MediaContainer');if(!Container)
return;switch(Type)
{case 1:Container.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="416" height="332" id="playback"><param name="allowScriptAccess" value="sameDomain" /><param name="menu" value="false" /><param name="movie" value="'+UrlVideo+'" /><param name="quality" value="high" /><embed menu="true" src="'+UrlVideo+'" quality="high" width="416" height="332" name="playback" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object>';break;case 2:Container.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="416" height="256" id="playback"><param name="allowScriptAccess" value="sameDomain" /><param name="menu" value="false" /><param name="movie" value="'+Url360+'" /><param name="quality" value="high" /><embed menu="true" src="'+Url360+'" quality="high" width="416" height="256" name="playback" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object>';break;case 3:Container.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="416" height="332" id="playback"><param name="allowScriptAccess" value="sameDomain" /><param name="menu" value="false" /><param name="movie" value="'+UrlVideoMk+'" /><param name="quality" value="high" /><embed menu="true" src="'+UrlVideoMk+'" quality="high" width="416" height="332" name="playback" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object>';break;}}
var AssetManager={Setup:function(url,params){if((params.width*params.height)==0){document.getElementById(params.target).parentNode.innerHTML="";}else{swfobject.embedSWF(params.flash,params.target,params.width,params.height,'9','/js/swfobject/expressInstall.swf',{url:url},{allowNetworking:'all',menu:'false',wmode:'transparent'},null)}}};