/* Cookies */

var Cookie = {

	get: function(name)
	{
	   var start = document.cookie.indexOf(name+"="); 
	   var len = start+name.length+1; 
	   if ((!start) && (name != document.cookie.substring(0,name.length))) return null; 
	   if (start == -1) return null; 
	   var end = document.cookie.indexOf(";",len); 
	   if (end == -1) end = document.cookie.length; 
	   return unescape(document.cookie.substring(len,end)); 
	},
	set: function(name,value,expires,path,domain,secure)
	{
		var cookieString = name + "=" +escape(value) + 
		   ( (expires) ? ";expires=" + expires.toGMTString(24) : "") + 
		   ( (path) ? ";path=" + path : "/") + /* '/' -> cookies are set global */
		   ( (domain) ? ";domain=" + domain : "") + 
		   ( (secure) ? ";secure" : ""); 
		document.cookie = cookieString; 
	},
	remove: function(name,path,domain)
	{
	   if (this.get(name)) document.cookie = name + "=" + 
		  ( (path) ? ";path=" + path : "") + 
		  ( (domain) ? ";domain=" + domain : "") + 
		  ";expires=Thu, 01-Jan-1970 00:00:01 GMT"; 
	}
};


function Get_Cookie(name) { 
   var start = document.cookie.indexOf(name+"="); 
   var len = start+name.length+1; 
   if ((!start) && (name != document.cookie.substring(0,name.length))) return null; 
   if (start == -1) return null; 
   var end = document.cookie.indexOf(";",len); 
   if (end == -1) end = document.cookie.length; 
   return unescape(document.cookie.substring(len,end)); 
};
function Set_Cookie(name,value,expires,path,domain,secure) { 
    var cookieString = name + "=" +escape(value) + 
       ( (expires) ? ";expires=" + expires.toGMTString(24) : "") + 
       ( (path) ? ";path=" + path : "") + 
       ( (domain) ? ";domain=" + domain : "") + 
       ( (secure) ? ";secure" : ""); 
    document.cookie = cookieString; 
};
function Delete_Cookie(name,path,domain) { 
   if (Get_Cookie(name)) document.cookie = name + "=" + 
      ( (path) ? ";path=" + path : "") + 
      ( (domain) ? ";domain=" + domain : "") + 
      ";expires=Thu, 01-Jan-1970 00:00:01 GMT"; 
};



//  FoolEmailBots script
function feb(name, domain, text, subject){
	if (text == null){
		text = name + '@' + domain;
	}
	if (subject != null){
		subject = '?subject=' + subject;
	}
	else
	{
		subject = '';
	}
	if (domain != ''){
	document.write('<a href="mailto:' + name + '@' + domain + subject + '">' + text + '</a>');
	}
};

function swf(swfPath, swfWidth, swfHeight){
document.writeln('	<object id="swf-object" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + swfWidth + '" height="' + swfHeight + '">');
document.writeln('		<param name="movie" value="' + swfPath + '" />');
document.writeln('		<param name="src" value="' + swfPath + '" />');
document.writeln('		<param name="FlashVars" value="" />');
document.writeln('		<param name="bgcolor" value="" />');
document.writeln('		<param name="menu" value="false" />');
document.writeln('		<param name="quality" value="high" />');
document.writeln('		<param name="salign" value="" />');
document.writeln('		<param name="scale" value="ShowAll" />');
document.writeln('		<embed id="swf-embed" src="' + swfPath + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="" bgcolor="" menu="false" quality="high" salign="" scale="ShowAll" width="' + swfWidth + '" height="' + swfHeight + '"></embed>');
document.writeln('	</object>');
};
