var _list='L?île aux Enfants:545681:53|Les bronzés - Dirla dirla...:464743:53|Les Bronzés font du ski -...:464791:53|Papa pingouin:470563:53|L?homme qui tombe à pic:144121:53|A la queuleuleu:163951:53|La panthère rose:144091:53|Il était une fois dans l?...:143192:53|Chapi chapo (remix):578577:53|Zidane y va marquer:559454:53|'; var _pos='100:400'; var playList = null; var player = null; var cookie = null; var browser = new Browser(); var drag = null; var host='musiclive.magikmobile.com'; function Initialize() { if (browser.Compatible == 1 ) { player = new Player(); player.LoadPos(); playList = new PlayList(10); PlayListShow(); DragAndDrop('MagikPlayListMain'); window.onscroll=playermove; window.onresize=playermove; moveit(); } } window.onload=Initialize; var scroll=true; var postop=0; var posleft=0; function playermove() { if ( scroll ) { idTimer=setTimeout("moveit()",50); } } function moveit() { elt=document.getElementById("MagikPlayListMain"); w=document.body.scrollLeft*1+player.OffsetLeft; h=document.body.scrollTop*1+player.OffsetTop; elt.style.left=w; elt.style.top=h; scroll=true; } // CLASS BROWSER function Browser() { this.OS; this.Browser; this.Version; this.Compatible=0; var detect = navigator.userAgent.toLowerCase(); var place; var thestring; if (checkIt('konqueror')){this.Browser = "Konqueror";this.OS = "Linux";} else if (checkIt('msie')) {this.Browser = "Internet Explorer";this.Compatible=1;} else if (checkIt('safari')) this.Browser = "Safari" else if (checkIt('omniweb')) this.Browser = "OmniWeb" else if (checkIt('opera')) this.Browser = "Opera" else if (checkIt('webtv')) this.Browser = "WebTV"; else if (checkIt('icab')) this.Browser = "iCab" else if (!checkIt('compatible')) { this.Browser = "Netscape Navigator" this.Version = detect.charAt(8); this.Compatible=1; } else this.Browser = "An unknown browser"; if (!this.Version) this.Version = detect.charAt(place + thestring.length); if (!this.OS) { if (checkIt('linux')) this.OS = "Linux"; else if (checkIt('x11')) this.OS = "Unix"; else if (checkIt('mac')) this.OS = "Mac" else if (checkIt('win')) this.OS = "Windows" else this.OS = "an unknown operating system"; } function checkIt(string) { place = detect.indexOf(string) + 1; thestring = string; return place; } } // CLASS PRODUCT function Product(title,id,typeId) { this.Id=id; this.TypeId=typeId; this.Title=title; } // CLASS PLAYLIST function PlayList(max) { this.Count=0; this.Size=max; this.List = new Array(max); Deserialize(this); this.Add = function(obj) { this.List[this.Count]=obj; this.Count++; Serialize(this); } this.Remove = function(id) { for(i=0;i 2) ? argv[2] : null; var path=(argc > 3) ? argv[3] : null; var domain=(argc > 4) ? argv[4] : null; var secure=(argc > 5) ? argv[5] : false; document.cookie=nom+"="+escape(valeur)+ ((expires==null) ? "" : ("; expires="+expires.toGMTString()))+ ((path==null) ? "" : ("; path="+path))+ ((domain==null) ? "" : ("; domain="+domain))+ ((secure==true) ? "; secure" : ""); } this.Read = function(nom) { var arg=nom+"="; var alen=arg.length; var clen=document.cookie.length; var i=0; while (i