
var DESCRIPTION_BANNER = "Members and friends of the ECCA";
var LINK_BANNER = "/index.html";

var initHeader = function(){				
	var divToReplace = "header";
	var img = $(divToReplace).getElement("img");
	/*if($chk(img)){
		var baseline = img.getProperty("alt");
		var flashvars = {
			baseline : encodeURIComponent(baseline)
		};
	}else{*/
		var flashvars = {};
	//}
	
	flashvars.description = encodeURIComponent(DESCRIPTION_BANNER);
	flashvars.link = encodeURIComponent(LINK_BANNER);
	swfobject.embedSWF("fileadmin/templates/flash/header.swf", "header" , "930", "169", "9.0.0","fileadmin/templates/flash/expressInstall.swf", flashvars, {}, {});
}

window.addEvent("domready",function(){
	initHeader();
}); 
/*
function PostSurveyComment(id){
    var myHTMLRequest = new Request.HTML({
        url:'php/tables.php?fuse=postcomment',
        evalResponse :true,
        update : $("cData_"+ id),
        onRequest: function(){ 
            $("cData_"+ id).innerHTML ='<div class="ajax"><img src="/fileadmin/templates/images/ajax-loader.gif" /></div>';
        }
    }).post($("cData_"+ id));
}
  */


/*
function CScomment(country,name,type){
    var ymd = new yamoodow([ { 
            url:'/php/tables.php?fuse=comment&country='+ country +"&type="+ type, 
            text:name 
        }], 
        {   
            title: 'Cervical Screening in Europe',            
            overlayFadeDuration:0,
            windowFadeDuration:0
        });
     ymd.openWin();
}*/


function CScomment(country,name,type){
    var page = '/php/tables.php?fuse=comment&country='+ country +"&type="+ type;
    window.open(page,"table","menubar=no, status=no, scrollbars=no, menubar=no, resize=no, width=450, height=450");   
}