/*	to add more css files:
	1) add to css file name list { cssName[x]= }
	2) add to new Array number { var cssName=new Array(x)  }
	3) add to random number generator in function get_randomNum  { var ranNum= Math.floor(Math.random()*x); }
*/ 
      function get_randomNum()
      {   
		  var ranNum= Math.floor(Math.random()*22);   
		  return ranNum;
      }
   
      function getaCss()
      {
		  var themeNum; 
		  themeNum = readCookie('theme');
		  if (themeNum == undefined)
		  { 
			  themeNum=get_randomNum();
			  createCookie('theme',themeNum,0)
		  }
		  var cssName=new Array(22)
	
	
		  cssName[0]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/yellow_crane.css'>";
		  cssName[1]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/alberta_legislative.css'>";
		  cssName[2]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/alberta_legislative2.css'>";
		  cssName[3]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/bc_legislature.css'>";
		  cssName[4]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/canadian_parliament1.css'>";
		  cssName[5]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/canadian_parliament2.css'>";
		  cssName[6]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/docks.css'>";
		  cssName[7]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/dusk_parliament.css'>";
		  cssName[8]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/edmonton_city_hall.css'>";
		  cssName[9]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/edmonton_skyline.css'>";
		  cssName[10]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/edmonton_state_legislature.css'>";
		  cssName[11]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/mountain_road.css'>";
		  cssName[12]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/oil_refinery.css'>";
		  cssName[13]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/parliament_night.css'>";
		  cssName[14]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/peace_tower1.css'>";
		  cssName[15]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/peace_tower2.css'>";
		  cssName[16]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/rocky.css'>";
		  cssName[17]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/vancouver_city_hall.css'>";
		  cssName[18]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/vcc.css'>";
		  cssName[19]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/victoria_parliament.css'>";
		  cssName[20]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/victoria_parliament_night.css'>";
		  cssName[21]="<link rel='stylesheet' type='text/css' href='http://www.canadianstrategygroup.com/wp-content/themes/corporate/css/season_greetings.css'>";
		  
		  cssTheme = cssName[themeNum];

		  return (cssTheme);
  
      }
	  
	  function createCookie(name,value,days) {
	  	if (days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
		}

	  function readCookie(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	  }

 
      document.write(getaCss());
