﻿function cookieVal(cookieName){
thisCookie = document.cookie.split("; ");
for(i=0; i<thisCookie.length; i++){
if(cookieName == thisCookie[i].split("=")[0]){
return thisCookie[i].split("=")[1];
}
}
return "x";
}

function pop01(){
if(cookieVal("notice") != "1"){
window.open("pop.php","notice","height=420, width=450, left=10, top=10");
}
}


function WriteEmbed(emb_id){ 
    document.write(document.getElementById(emb_id).value);
}

function swf(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name="wmode" value="transparent">';
	html += '<param name="menu" value="false">';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

