 var normalTime=4000;
 var earlierDate=new Date();
 var counts= 1.0;
 var aTotal = 1.0;
 var laterDate=new Date();
 var stealth = 0;
 var stopNormal = 0;
 var stopChoice=0;
 var stopInitial=0;
 $("#timeCount").attr("readonly","readonly");
 function refreshNormal() { 
 	stopChoice=1;
    stopInitial=1;	
    stopNormal=0;
    var f = document.getElementById('myTime');
    f.style.display='none';
    earlierDate=new Date();
    var value = getCookie("k1049502#1_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {	
        var Start = new Date();
        
    	var k = $('#panel1_1')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow');
		k.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopNormal == 0) {setTimeout('refreshNormal1()',normalTime);} 
	return;};					

  function refreshNormal1() {  	
    var value = getCookie("k1049502#1_2");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {	
    	var k = $('#panel1_2')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		k.attr('title',' "'+getName(value)+'" ');
		
	}}
	if(stopNormal == 0) {setTimeout('refreshNormal2()',normalTime);} 
	return;};						

  function refreshNormal2() {  	
    var value = getCookie("k1049502#1_3");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {	
    	var k = $('#panel1_3')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		k.attr('title',' "'+getName(value)+'" ');

	}}
	if(stopNormal == 0) {setTimeout('refreshNormal3()',normalTime);} 
	return;};	
  function refreshNormal3() {  	
    var value = getCookie("k1049502#1_4");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {	
    	var k = $('#panel1_4')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		k.attr('title',' "'+getName(value)+'" ');
		

	}}
	if(stopNormal == 0) {setTimeout('refreshNormal4()',normalTime);} 
	return;};	

  function refreshNormal4() {  
   var value = getCookie("k1049502#2_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {	
    	var k = $('#panel2_1')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		k.attr('title',' "'+getName(value)+'" ');

	}}
	if(stopNormal == 0) {setTimeout('refreshNormal5()',normalTime); }
	return;};						 				

  function refreshNormal5() {  	
    var value = getCookie("k1049502#2_3");
    if(value!=null){
    if (value != "http://www.meltronx")
    {	
    	var k = $('#panel2_3')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		k.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopNormal == 0) {setTimeout('refreshNormal6()',normalTime);} 
	return;};	

  function refreshNormal6() {  	
    var value = getCookie("k1049502#2_4");
    if(value!=null){
    if (value != "http://www.meltronx")
    {	
    	var k = $('#panel2_4')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		k.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopNormal == 0) {setTimeout('refreshNormal7()',normalTime);} 
	return;};	

  function refreshNormal7() {  	
    var value = getCookie("k1049502#3_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {	
    	var k = $('#panel3_1')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		k.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopNormal == 0) {setTimeout('refreshNormal8()',normalTime);} 
	return;};					

  function refreshNormal8() {  	
    var value = getCookie("k1049502#4_2");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var k = $('#panel4_2')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		k.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopNormal == 0) {
	    setTimeout('refreshNormal9()',normalTime);
        document.quickSelect.site.selectedIndex = 0;} 
	return;};					


  function refreshNormal9() {  	
    var value = getCookie("k1049502#3_3");
    if(value!=null){	
    if (value.substring(0,19) != "http://www.meltronx")
    {	
    	var k = $('#panel3_3')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		k.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopNormal == 0) {setTimeout('refreshNormal10()',normalTime);} 
	return;};				


  function refreshNormal10() {  	
    var value = getCookie("k1049502#3_4");
    if(value!=null){	
    if (value.substring(0,19) != "http://www.meltronx")
    {	
    	var k = $('#panel3_4')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		k.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopNormal == 0) {setTimeout('refreshNormal11()',normalTime);} };				

  function refreshNormal11() {  		
    var value = getCookie("k1049502#4_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {	
    	var k = $('#panel4_1')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		k.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopNormal == 0) {setTimeout('refreshNormal12()',normalTime);} 
	return;};			

  function refreshNormal12() {  	
    var value = getCookie("k1049502#4_3");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {	
    	var k = $('#panel4_3')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		k.attr('title',' "'+getName(value)+'" ');
	}}
    if(stopNormal == 0) {setTimeout('refreshNormal13()',normalTime);}
  
	return;};	
  function refreshNormal13() {  	
    var value = getCookie("k1049502#4_4");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
      {	
    	var k = $('#panel4_4')
		k.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		k.attr('title',' "'+getName(value)+'" ');
	
	  }
	}
    theDiff = get_time_difference(earlierDate,new Date);
    var e = $("#timeCount");
    counts += 1.0;
    aTotal+=theDiff.seconds;
    var span = aTotal/counts;
    span = theDiff.seconds + (60*theDiff.minutes);
    e.attr('value',span);
    var f = document.getElementById('myTime');
    f.style.display='none';
    if(stopNormal == 0) {setTimeout('refreshNormal()',normalTime);} 
	return;};	
	
  function showStream(){
       var o = document.getElementById('stream');
       var p = document.getElementById('myButton6');
       if(o.style.display == 'block'){
           o.style.display = 'none';
           p.value=" Toggle CERN Tweets On ";
           }
           else{
           o.style.display = 'block';
           p.value=" Toggle CERN Tweets Off ";}
       
  
	return;};	
  
 function showTV(){
       var m = document.getElementById('tv1');
       var n = document.getElementById('tv2');
       var o = document.getElementById('tv3');
       var p = document.getElementById('tv4');
       var q = document.getElementById('myButton8');
       if(o.style.display == 'block'){
           m.style.display = 'none';
           n.style.display = 'none';
           o.style.display = 'none';
           p.style.display = 'none';
           //p.value=" Toggle CERN TV ON ";
           q.value=" Toggle CERN TV on ";
           }
           else{  
           m.style.display = 'block';
           n.style.display = 'block';
           o.style.display = 'block';
           p.style.display = 'block';
           //p.value=" Toggle CERN TV OFF ";
           q.value=" Toggle CERN TV off ";
           }
 
	return;};	

 function hideadjust(){
 
  var o = document.getElementById('adjust');
  o.style.display = 'none';
  cheap();
  showmodifyButton();
  showmainTable();
  stopNormal=0;
  stopChoice=1;
 refreshNormal();
  checkTVCookie();
  checkCookie();
   setTimeout("hidebanner();",20000);

	return;};	
	
 function hideit(){
 eraseCookie('cernTV2');
 eraseCookie('cerntv3');
  var o = document.getElementById('adjust');
  o.style.display = 'none';
  cheap();
  showmodifyButton();
  showmainTable();
  stopNormal=0;
  stopChoice=1;
  initial();
  streamIt();
  checkTVCookie();
  checkCookie();
   //setTimeout("quiet();",60000);

	return;};	
	
 function showit(){ 
  hidemainTable();
  hidemodifyButton();
  hidebanner();
  stopNormal=1;
  stopInitial=1;
  stopChoice=0;
  LoadIt();  
  var o = document.getElementById('adjust');
  o.style.display = 'block';
  //$("#adjust img[title]").tooltip({ offset: [180, 0], cancelDefault:true, predelay:500, delay:500, opacity:0.75, effect: 'toggle'});

	return;};	       

 function hidemodifyButton(){
  var o = document.getElementById('modifyButton');
  o.style.display = 'none';

	return;};	
	
function showmodifyButton(){
  var o = document.getElementById('modifyButton');
  o.style.display = 'block';

	return;};	
	
 function hidemainTable(){
  var o = document.getElementById('mainTable');
  o.style.display = 'none';

	return;};	
	
 function showmainTable(){
  var o = document.getElementById('mainTable');
  o.style.display = 'block';
	return;};	
	
 function hideHints(){
  var o = document.getElementById('hints');
  o.style.display = 'none';

	return;};	

function hidebanner(){
  var o = document.getElementById('stage');
  o.style.display = 'none'; 
  //var o = document.getElementById('streamButton');
  // o.style.display = 'block';
  //var o = document.getElementById('headline');
  //o.style.display = 'none';
  //var o = document.getElementById('selectButton');
  //o.style.display = 'block';
  //var o = document.getElementById('aliceButton');
  //o.style.display = 'block';
  //var o = document.getElementById('streamTV1');
  //o.style.display = 'block';
  var o = document.getElementById('tv1');
  o.style.display = checkTVCookie();
  var p = document.getElementById('tv2');
  p.style.display = o.style.display;
  var q = document.getElementById('tv3');
  q.style.display = o.style.display;
  var q = document.getElementById('tv4');
  q.style.display = o.style.display;
  var o = document.getElementById('modifyButton');
  o.style.display = 'block';
  //var o = document.getElementById('headline');
  //o.style.display = 'block';
  //setTimeout("document.getElementById('headline').style.display ='none'",normalTime0);  
  //  refreshCount();
  // $("#controls [title]").tooltip({ offset: [20, 4],cancelDefault:true, predelay:100, delay:100, opacity:0.9, effect: 'toggle'});
  // $("#video iframe[title]").tooltip({ cancelDefault:true, predelay:50, delay:0, opacity:0.9, effect: 'toggle'});
 
 // $("#mainTable img[title]").tooltip({  offset: [60, 0], cancelDefault:false, predelay:50, delay:50, opacity:0.8, effect: 'toggle'});

	

	return;};	

function prepull(_string) {
var _return = [];
for (var i=0;i<_string.length;i++) _return.push((-~_string.charCodeAt(i)*k*e*y/e)(39)(16).toUpperCase());
return _return.join().replace(/,/g,"");

	return;};	

function repull(_string) {
var _return = "";
for (var i=0;i<_string.length/3;i++) _return+=String.fromCharCode(~-(parseInt(_string.substring(i*y,i*y+y), 16)*e/k/e/y));
return _return;

	return;};	
function parseNameOpen(name){
	var nameLen = name.length;
	var lastPos1 =name.lastIndexOf("/")+1
	var lastPos2 =name.indexOf(".png")
	var lastPos3 =name.indexOf(".jpg")
	if(lastPos3 >lastPos2){lastPos2=lastPos3;}
	var temp=name.substring(lastPos1,lastPos2)
	temp=temp+".html"
	temp=temp.toLowerCase()
	if(temp != "slide13.html"){
		this.window.open(temp); 
    } 
	return;};	

function getName(name){
	var nameLen = name.length;
	var lastPos1 =name.lastIndexOf("/")+1
	var lastPos2 =name.indexOf(".png")
	var lastPos3 =name.indexOf(".jpg")
	if(lastPos3 >lastPos2){lastPos2=lastPos3;}
	var temp=name.substring(lastPos1,lastPos2)
	temp=temp.substring(0,1).toUpperCase() + temp.substring(1);
	return(temp);
	
	return;};	
 function cheap(){ 	
    var first = getCookie('noobs');
    if(first != "user"){ 
       check4novice(); 
    }

	return;};	
  
  function check4novice(){
  var count = 0;
  var value = getCookie("k1049502#1_1");
  if(value != null){count++;};
  var value = getCookie("k1049502#1_2");
  if(value != null){count++;};
  var value = getCookie("k1049502#1_3");
  if(value != null){count++;};
  var value = getCookie("k1049502#1_4");
  if(value != null){count++;};
  var value = getCookie("k1049502#2_1");
  if(value != null){count++;};
  var value = getCookie("k1049502#2_3");
  if(value != null){count++;};
  var value = getCookie("k1049502#2_4");
  if(value != null){count++;};
  var value = getCookie("k1049502#3_1");
  if(value != null){count++;};
  var value = getCookie("k1049502#3_3");
  if(value != null){count++;};
  var value = getCookie("k1049502#3_4");
  if(value != null){count++;};
  var value = getCookie("k1049502#4_1");
  if(value != null){count++;};
  var value = getCookie("k1049502#4_2");
  if(value != null){count++;};
  var value = getCookie("k1049502#4_3");
  if(value != null){count++;};
  var value = getCookie("k1049502#4_4");
  if(value != null){count++;};
  if(count >0){
    createCookie("noobs","user",365);    
    }
 
	return;};	
 function initial() {  
    stopInitial=0;
   	stopNormal=1; 
   	stopChoices=1;
   	
    var value = getCookie("k1049502#1_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
        var a = $('#panel1_1')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopInitial == 0) {setTimeout('initial1()',1000); }
	return;};				

  function initial1() {  	
    var value = getCookie("k1049502#1_2");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
        var a = $('#panel1_2')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopInitial == 0) {setTimeout('initial2()',1000); }
	return;};				

  function initial2() {  	
    var value = getCookie("k1049502#1_3");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
        var a = $('#panel1_3')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopInitial == 0) {setTimeout('initial3()',1000); }
	return;};				

	
  function initial3() {  	
    var value = getCookie("k1049502#1_4");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
        var a = $('#panel1_4')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopInitial == 0) {setTimeout('initial4()',1000); }
	return;};				

  function initial4() {  
   var value = getCookie("k1049502#2_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
        var a = $('#panel2_1')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopInitial == 0) {setTimeout('initial5()',1000); }
	return;};				
						 				

  function initial5() {  	
    var value = getCookie("k1049502#2_3");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
        var a = $('#panel2_3')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopInitial == 0) {setTimeout('initial6()',1000); }
	return;};				


  function initial6() {  	
    var value = getCookie("k1049502#2_4");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
        var a = $('#panel2_4')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopInitial == 0) {setTimeout('initial7()',1000); }
	return;};				


  function initial7() {  	
    var value = getCookie("k1049502#3_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
        var a = $('#panel3_1')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopInitial == 0) {setTimeout('initial8()',1000); }
	return;};				
				

  function initial8() {  	
    var value = getCookie("k1049502#4_2");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
        var a = $('#panel4_2')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopInitial == 0) {setTimeout('initial9()',1000); }
	return;};				


  function initial9() {  	
    var value = getCookie("k1049502#3_3");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {		
        var a = $('#panel3_3')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopInitial == 0) {setTimeout('initial10()',1000); }
	return;};				
		

 function initial10() {  	
    var value = getCookie("k1049502#3_4");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
        var a = $('#panel3_4')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopInitial == 0) {setTimeout('initial11()',1000); }
	return;};				

  function initial11() {  		
    var value = getCookie("k1049502#4_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
        var a = $('#panel4_1')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopInitial == 0) {setTimeout('initial12()',1000); }
	return;};				
		
	
	function initial12() {  	
    var value = getCookie("k1049502#4_3");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
        var a = $('#panel4_3')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
	if(stopInitial == 0) {setTimeout('initial13()',1000); }
	return;};				
			

  function initial13() {  	
    var value = getCookie("k1049502#4_4");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
        var a = $('#panel4_4')
		a.attr('src',value+ '?'+Math.random()).fadeIn('slow')
		a.attr('title',' "'+getName(value)+'" ');
	}}
   	stopInitial=1;
    refreshNormal(); 
    
	return;};	
    
  function Choices() {   
   	stopNormal=1;	
    var value = getCookie("k1049502#1_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var a = $('#Choose1_1');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
	if(stopChoice == 0) {setTimeout('Choices1()', 4000); }
	return;};				

  function Choices1() {  	
    var value = getCookie("k1049502#1_2");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var a = $('#Choose1_2');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
	if(stopChoice == 0) {setTimeout('Choices2()', 4000); }
	return;};					

  function Choices2() {  	
    var value = getCookie("k1049502#1_3");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var a = $('#Choose1_3');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
	if(stopChoice == 0) {setTimeout('Choices3()', 4000);} 
	return;};	
    
function Choices3() {  	
    var value = getCookie("k1049502#1_4");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var a = $('#Choose1_4');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
    if(stopChoice == 0) {setTimeout('Choices4()', 4000);}
	return;};	

  function Choices4() {  
   var value = getCookie("k1049502#2_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var a = $('#Choose2_1');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
	if(stopChoice == 0) {setTimeout('Choices5()', 4000);} 
	return;};						 				

    function Choices5() {  	
    var value = getCookie("k1049502#2_3");
    if(value!=null){
    if (value != "http://www.meltronx")
    {
		var a = $('#Choose2_3');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
	if(stopChoice == 0) {setTimeout('Choices7()', 4000);} 
	return;};	
 function Choices7() {  	
    var value = getCookie("k1049502#2_4");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var a = $('#Choose2_4');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
    if(stopChoice == 0) {setTimeout('Choices8()', 4000);}
	return;};	
    
  function Choices8() {  	
    var value = getCookie("k1049502#3_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var a = $('#Choose3_1');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
	if(stopChoice == 0) {setTimeout('Choices9()', 4000);} 
	return;};						

  function Choices9() {  	
    var value = getCookie("k1049502#3_3");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var a = $('#Choose3_3');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
	if(stopChoice == 0) {setTimeout('Choices10()', 4000);} 
	return;};					

function Choices10() {  	
    var value = getCookie("k1049502#3_4");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var a = $('#Choose3_4');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
    if(stopChoice == 0) {setTimeout('Choices11()', 4000);}
	return;};	
 
  function Choices11() {  		
    var value = getCookie("k1049502#4_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var a = $('#Choose4_1');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
	if(stopChoice == 0) {setTimeout('Choices12()', 4000);}
	return;};				

  function Choices12() {  	
    var value = getCookie("k1049502#4_2");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var a = $('#Choose4_2');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
    if(stopChoice == 0) {setTimeout('Choices13()', 4000);}
	return;};	
    

  function Choices13() {  	
    var value = getCookie("k1049502#4_3");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var a = $('#Choose4_3');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
	if(stopChoice == 0) {setTimeout('Choices14()', 4000);} 
	return;};						

   
    function Choices14() {  	
    var value = getCookie("k1049502#4_4");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		var a = $('#Choose4_4');
		a.attr('src',value+ '?'+Math.random()).fadeIn('fast');
	}
	}
   if(stopChoice == 0) {setTimeout('Choices()', 4000);}
	return;};	
    
   function warp(){
    var aString = "http://cmsinfo.cern.ch/outreach/cmseye/"
    var bString = "http://cmsinfo.web.cern.ch/cmsinfo/outreach/cmseye/"
   	var value = getCookie("k1049502#1_1");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#1_1',valuenew,364);
         }
   	}
   	var value = getCookie("k1049502#1_2");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#1_2',valuenew,364);
         }
   	}
   	var value = getCookie("k1049502#1_3");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#1_3',valuenew,364);
         }
   	}
   	var value = getCookie("k1049502#1_4");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#1_4',valuenew,364);
         }
   	}
   	var value = getCookie("k1049502#2_1");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#2_1',valuenew,364);
         }
   	}
   	var value = getCookie("k1049502#2_3");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#2_3',valuenew,364);
         }
   	}
   	var value = getCookie("k1049502#2_4");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#2_4',valuenew,364);
         }
   	}
   	var value = getCookie("k1049502#3_1");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#3_1',valuenew,364);
         }
   	}
   	var value = getCookie("k1049502#3_3");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#3_3',valuenew,364);
         }
   	}
   	var value = getCookie("k1049502#3_4");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#3_4',valuenew,364);
         }
   	}
   	var value = getCookie("k1049502#4_1");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#4_1',valuenew,364);
         }
   	}
   	var value = getCookie("k1049502#4_2");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#4_2',valuenew,364);
         }
   	}
   	var value = getCookie("k1049502#4_3");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#4_3',valuenew,364);
         }
   	}
   	var value = getCookie("k1049502#4_4");
   	if(value!=null){	
   		 if(value.substring(0,39) ==aString){
   		 	var valuenew=bString + value.substring(39);
   		 	setCookie('k1049502#4_4',valuenew,364);
         }
   	}
   };
   
 function streamIt(){ 	
    var n = document.getElementById('firstTime');
    var first = getCookie('noobs');
    if (first != "user")
    {        
        n.style.display = 'block';
        setCookie('k1049502#1_1','http://vistar-capture.web.cern.ch/vistar-capture/lhc3.png',364);
        setCookie('k1049502#1_2','http://vistar-capture.web.cern.ch/vistar-capture/lhc1.png',364);
        setCookie('k1049502#1_3','http://vistar-capture.web.cern.ch/vistar-capture/lhc2.png',364);
        setCookie('k1049502#1_4','http://cmsonline.cern.ch/evtdisp/RhoPhi.png',364);
        setCookie('k1049502#2_1','http://alicedcs.web.cern.ch/AliceDCS/monitoring/Screenshots/Panels/ACR-BS1-M.png',364);
        setCookie('k1049502#2_3','http://cmspage1.web.cern.ch/cmspage1/data/page1.png',364);
        setCookie('k1049502#2_4','http://cmsonline.cern.ch/evtdisp/Lego.png',364);
        setCookie('k1049502#3_1','http://alicedcs.web.cern.ch/AliceDCS/monitoring/Screenshots/Panels/MCS.png',364);
        setCookie('k1049502#3_3','http://vistar-capture.web.cern.ch/vistar-capture/lhccoord.png',364);
        setCookie('k1049502#3_4','http://cmsonline.cern.ch/evtdisp/3DRecHit.png',364);
        setCookie('k1049502#4_1','http://alicedcs.web.cern.ch/AliceDCS/monitoring/Screenshots/Panels/ACR-BS2-XL.png',364);
        setCookie('k1049502#4_2','http://lhcdashboard-images.web.cern.ch/lhcdashboard-images/images/lhc/prod/dashboard.png',364);
        setCookie('k1049502#4_3','http://vistar-capture.web.cern.ch/vistar-capture/LHCBDS.png',364);
        setCookie('k1049502#4_4','http://vistar-capture.web.cern.ch/vistar-capture/lhcexpmag.png',364);
    	createCookie("noobs","novice",365);
    }
    else
    {
           n.style.display = 'none';
    }
 
	return;};	

function setMaster(name){	
  document.images['master'].src=document.images[name].src;
  document.images['master'].title=document.images[name].title.substring(10);
 
	return;};	

 function initChoices() {   
   	stopNormal=1;	
    var value = getCookie("k1049502#1_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		document.images['Choose1_1'].src = value+ '?'+Math.random();
	}
	}
	if(stopChoice == 0) {setTimeout('initChoices1()', 1000); }
	return;};				

  function initChoices1() {  	
    var value = getCookie("k1049502#1_2");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		document.images['Choose1_2'].src = value+ '?'+Math.random(); 
	}
	}
	if(stopChoice == 0) {setTimeout('initChoices2()', 1000); }
	return;};						

  function initChoices2() {  	
    var value = getCookie("k1049502#1_3");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		document.images['Choose1_3'].src = value+ '?'+Math.random(); 
	}}
	if(stopChoice == 0) {setTimeout('initChoices3()', 1000);} 
	return;};	

  function initChoices3() {  
   var value = getCookie("k1049502#2_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		document.images['Choose2_1'].src = value+'?'+Math.random(); 
	}}
	if(stopChoice == 0) {setTimeout('initChoices4()', 1000);} 
	return;};							 				

    function initChoices4() {  	
    var value = getCookie("k1049502#2_3");
    if(value!=null){
    if (value != "http://www.meltronx")
    {
		document.images['Choose2_3'].src = value+ '?'+Math.random();
	}}
	if(stopChoice == 0) {setTimeout('initChoices5()', 1000);} 
	return;};		

  function initChoices5() {  	
    var value = getCookie("k1049502#3_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		document.images['Choose3_1'].src = value+ '?'+Math.random();
	}}
	if(stopChoice == 0) {setTimeout('initChoices6()', 1000);} 
	return;};						

  function initChoices6() {  	
    var value = getCookie("k1049502#3_3");	
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		document.images['Choose3_3'].src = value+ '?'+Math.random();
	}}
	if(stopChoice == 0) {setTimeout('initChoices7()', 1000);} 
	return;};					

  function initChoices7() {  		
    var value = getCookie("k1049502#4_1");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		document.images['Choose4_1'].src = value+ '?'+Math.random();
	}}
	if(stopChoice == 0) {setTimeout('initChoices8()', 1000);} 
	return;};				

  function initChoices8() {  	
    var value = getCookie("k1049502#4_3");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		document.images['Choose4_3'].src = value+ '?'+Math.random();
	}}
	if(stopChoice == 0) {setTimeout('initChoices9()', 1000);} 
	return;};						

  function initChoices9() {  	
    var value = getCookie("k1049502#4_2");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		document.images['Choose4_2'].src = value+ '?'+Math.random(); 
	}}
    if(stopChoice == 0) {setTimeout('initChoices10()', 1000);}
	return;};	
    
    function initChoices10() {  	
    var value = getCookie("k1049502#1_4");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		document.images['Choose1_4'].src = value+ '?'+Math.random(); 
	}}
    if(stopChoice == 0) {setTimeout('initChoices11()', 1000);}
	return;};	

    function initChoices11() {  	
    var value = getCookie("k1049502#2_4");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		document.images['Choose2_4'].src = value+ '?'+Math.random(); 
	}}
    if(stopChoice == 0) {setTimeout('initChoices12()', 1000);}
	return;};	
    
    function initChoices12() {  	
    var value = getCookie("k1049502#3_4");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		document.images['Choose3_4'].src = value+ '?'+Math.random(); 
	}}
    if(stopChoice == 0) {setTimeout('initChoices13()', 1000);}
	return;};	
    
    function initChoices13() {  	
    var value = getCookie("k1049502#4_4");
    if(value!=null){
    if (value.substring(0,19) != "http://www.meltronx")
    {
		document.images['Choose4_4'].src = value+  '?'+Math.random(); 
	}}
   if(stopChoice == 0) {setTimeout('Choices()', 1000);}
	return;};	 
   
function speedy(){
	var index = document.speed.rate.options[document.speed.rate.selectedIndex].value;
	counts= 1.0;
    aTotal = 1.0;
    stopNormal = 0;
    var e = $("#timeCount");
    e.attr('value'," ");
	 switch(index)
		{
			case "1":normalTime=8000;break;
			case "2":normalTime=6000;break;
			case "3":normalTime=4000;break;
			case "4":normalTime=2000;break;
			case "5":normalTime=1000;break;
			default:document.speed.rate.selectedIndex=0;
	    }
	
	return;};	
	
	
