// gallup07.js


/*

var	toyssspopup = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="396" height="322" id="kesko" align="middle"><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="allow" /><param name="movie" value="http://tutkimus.toy.fi/cgi-bin/kesko_2007.pl" /><param name="quality" value="high" /><embed src="http://tutkimus.toy.fi/cgi-bin/kesko_2007.pl" quality="high" wmode="transparent" width="396" height="322" name="kesko" align="middle" allowScriptAccess="allow" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
var toysssylaX=100;
var toysssylaY=100;
var toysssleveys=396;
var toyssskorkeus=322;
var toyssskeksi = document.cookie;
var toyssskeksi_nimi = "tutkimus";
var toyssskeksi_arvo = "tarkistus";
var toyssskeksiVoimassa=1;
var toyssswindow_or_conf=1;
var toysssjokamones =1;
var ylaraja = (1.0/toysssjokamones);

function toysssgetCookie(name) {  
        var toysssindex = toyssskeksi.indexOf(name + "="); 
        if (toysssindex == -1) {                      
                return null; 
        }
        toysssindex = toyssskeksi.indexOf("=", toysssindex) + 1; 
        var toysssendstr = toyssskeksi.indexOf(";", toysssindex); 
        if (toysssendstr == -1) { 
                toysssendstr = toyssskeksi.length;
        } 
        return unescape(toyssskeksi.substring(toysssindex, toysssendstr)); 
}  
function toysssrandom() {
        toysssrandom.seed = (toysssrandom.seed*toysssrandom.a + toysssrandom.c) % toysssrandom.m;
        return toysssrandom.seed / toysssrandom.m;
}
function toyssswindowOpener() {
       toyssstulosta();
}
function toyssssetCookie (name, value, expires) { 
        if (!expires) {
                expires = new Date();
        }
        document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() + "; path=/";
} 
function toysssmakeCookie() {
        var toysssexptime = toyssskeksiVoimassa;
        var toysssexpdate = new Date (); 
        toysssexpdate.setTime (toysssexpdate.getTime() + (1000 * 60 * 60 * 24 * toysssexptime));
        toyssssetCookie(toyssskeksi_nimi,toyssskeksi_arvo,toysssexpdate);
}
function toysssalusta() {
        if (toyssskeksi_arvo != (toysssgetCookie(toyssskeksi_nimi))) {
                toysssrandom.m = 714025;
                toysssrandom.a = 4096;
                toysssrandom.c = 150889;
                toysssrandom.seed =  (new Date()).getTime() %toysssrandom.m;
                satu = toysssrandom();
                if (satu <= ylaraja){
                        toysssmakeCookie();
                        if (toyssswindow_or_conf==1) {
                                toyssswindowOpener();
                        }
                        else getConfirmation();
                }
        }
}
function toyssstulosta(){
	if (document.all || navigator.userAgent.indexOf('Gecko')>0)	{	
		document.write('<div id="popupRuutu" style="position:absolute; top:'+toysssylaY+'px; width:'+toysssleveys+'px;  margin-left:'+toysssylaX+'px; visibility:visible">');
		document.write(toyssspopup);
		document.write('<\/div>');
		document.write('<img src="http:\/\/stat.www.fi\/cgi-bin\/stat2?serv=toysss" width="1" height="1" alt=" "');
		tag_div = document.getElementsByTagName("div");
		}
}
function piilota(){
	if (document.all) { 
		popupRuutu.innerHTML="";	
		popupRuutu.style.visibility='hidden';
	}
	else if (navigator.userAgent.indexOf('Gecko')>0){
		tag_div["popupRuutu"].innerHTML="";	
		tag_div["popupRuutu"].style.visibility='hidden';
		}
}
 


function checkgallup07()
{
	// alert(window.top.location.href);
	var w_t_l_href = window.top.location.href; 
	w_t_l_href = w_t_l_href.toUpperCase();

// ENGLANTI 	
	//Consumers
	if (w_t_l_href.indexOf("93AB3DB020C34D9CBEFE18C9AD2C45D7")!=-1)
		return false;
	//Group
	if (w_t_l_href.indexOf("73B7F525B57043D3BD3816FDFAD83FE7")!=-1)
		return false;	
	// Media
	if (w_t_l_href.indexOf("0061248BB1F44933A848CD191ED376B6")!=-1)
		return false;	
	// Investors
	if (w_t_l_href.indexOf("9756F2EF68F84613AC726ED420EC4AE8")!=-1)
		return false;	
	// Jobs
	if (w_t_l_href.indexOf("977B5C361FE04CCC91934C2981059853")!=-1)
		return false;	
	// Responsibility
	if (w_t_l_href.indexOf("C473A9A1731E42EA86F5CC8539ECA0FE")!=-1)
		return false;	
	// Material
	if (w_t_l_href.indexOf("AE49C10586964569BD2388978163A0C6")!=-1)
		return false;	
	// Contacts
	if (w_t_l_href.indexOf("69ED5AD01E7541718746856C4DBEA8C1")!=-1)
		return false;	
		
		
		
	// Konsumenter
	if (w_t_l_href.indexOf("8947058B3E5A4796A0FFCED5AEE5E9F8")!=-1)
		return false;	
	// Koncernen
	if (w_t_l_href.indexOf("8DEDF02DBB834338B23599D178A301A9")!=-1)
		return false;	
	// Medier
	if (w_t_l_href.indexOf("206D6A3F16CF4FDEBF807F5C3539CC5D")!=-1)
		return false;																		
	// Investerare
	if (w_t_l_href.indexOf("8EFD762CD6214E30973A441B29115993")!=-1)
		return false;																		
	// Anställning
	if (w_t_l_href.indexOf("EFF25AD0E21F43F4A1D70954EDEF1EB5")!=-1)
		return false;																		
	// Ansvar
	if (w_t_l_href.indexOf("A8D09758A4BF40F0893AC9BDCECAD755")!=-1)
		return false;																		
	// Material
	if (w_t_l_href.indexOf("49EF1F91A4CF4C35ACF805EAF8695C9D")!=-1)
		return false;																		
	// Kontaktuppgifter
	if (w_t_l_href.indexOf("4763C2A88B5D47899BF1548E0613893F")!=-1)
		return false;																		
 
 
 	
	if (w_t_l_href.indexOf("SWE")!=-1)
		return false;																		
 	if (w_t_l_href.indexOf("ENG")!=-1)
		return false;			
														
	var d_l_href = document.location.href; 
	d_l_href = d_l_href.toUpperCase();
	
	 
	// Kontaktuppgifter
	if (w_t_l_href.indexOf("ENG")!=-1)
		return false;	
	if (w_t_l_href.indexOf("SWE")!=-1)
		return false;	
		 
	return true;
	

}

if (checkgallup07())
	toysssalusta();

 
 */
 


  