var liveinfo = 'no'
/////////////////////////////////////////////////////
//var navsubnewinsert = '<a href="http://chat.boldchat.com/chat/visitor.jsp?cdid=1892112937" target="_blank" onClick="this.newWindow = window.open(\'http://chat.boldchat.com/chat/visitor.jsp?cdid=1892112937&url=\' + document.location, \'Chat\', \'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480\'); this.newWindow.focus(); this.newWindow.opener = window;return false;"><img alt="Talk to us now !!" src="LiveInfo.gif" width=90 height=39 border="0" vspace=5></a><br>';

if(liveinfo == "yes"){
var navsubnewinsert = '<a href="http://chat.boldchat.com/chat/visitor.jsp?cdid=1892112937" target="_blank" onClick="this.newWindow = window.open(\'http://chat.boldchat.com/chat/visitor.jsp?cdid=1892112937&url=\' + document.location, \'Chat\', \'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480\'); this.newWindow.focus(); this.newWindow.opener = window;return false;"><img alt="Talk to us now !!" src="LiveInfo1.gif" border="0" vspace=5 hspace=10></a><br>';
var littlesubnewinsert = '<a href="http://chat.boldchat.com/chat/visitor.jsp?cdid=1892112937" target="_blank" onClick="this.newWindow = window.open(\'http://chat.boldchat.com/chat/visitor.jsp?cdid=1892112937&url=\' + document.location, \'Chat\', \'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480\'); this.newWindow.focus(); this.newWindow.opener = window;return false;"><img alt="Talk to us now !!" src="LiveInfo-small.gif" width=75 height=22 border="0" vspace=5></a><br>';
}else{
var navsubnewinsert = "";
}

//var navsubnewinsert = '<a href="http://chat.boldchat.com/chat/visitor.jsp?cdid=1892112937" target="_blank" onClick="this.newWindow = window.open(\'http://chat.boldchat.com/chat/visitor.jsp?cdid=1892112937&url=\' + document.location, \'Chat\', \'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480\'); this.newWindow.focus(); this.newWindow.opener = window;return false;"><img alt="Talk to us now !!" src="LiveInfo.gif" width=149 height=47 border="0"></a><br>';

//
//var navsubnew = '<TR><TD align="center" colspan="3"><TABLE border=0><TR><TD align=\"right\">'+navsubnewinsert+'<A href="javascript:OpenCertDetails()"><IMG SRC="thawte_seal.gif" VSPACE="0" HSPACE="10" BORDER="0" LOOP="0" ALT="Secure site" ALIGN="absmiddle"><\/a><\/TD><TD align=center width=150><P class=ethical><IMG SRC=\"hands1-65bw.jpg\" width=\"132\" height=\"65\" VSPACE=\"5\" HSPACE=\"0\" BORDER=\"1\" ALT=\"Supporting fair trade in rural Mexico since 1983\"><br><a href=\"http:\/\/www.ethical-junction.org\" target=\"new.window\"><img src=\"ethical-logo1.gif\" width=\"132\" height=\"34\" alt=\"a member of ethical junction\" border=\"0\"><\/A><\/TD><TD align=\"left\">'+navsubnewinsert+'<A href="javascript:OpenCertDetails()"><IMG SRC="thawte_seal.gif" VSPACE="0" HSPACE="10" BORDER="0" LOOP="0" ALT="Secure site" ALIGN="absmiddle"><\/a><\/TD><\/TR><\/TABLE><\/TD><\/TR>';
var navsubnew = '<TR><TD align="center" colspan="3"><TABLE border=0><TR><TD align=\"right\">'+navsubnewinsert+'<A href="javascript:OpenCertDetails()"><IMG SRC="geotrust_seal.gif" VSPACE="0" HSPACE="10" BORDER="0" LOOP="0" ALT="säkrad av DIBS" ALIGN="absmiddle"><\/a><\/TD><TD align=center width=150><P><IMG SRC=\"hands1-65bw.jpg\" width=\"132\" height=\"65\" VSPACE=\"5\" HSPACE=\"0\" BORDER=\"1\" ALT=\"Vi stödjer rättvisemärkt i Mexiko sedan 1983\"><br><a href=\"http:\/\/www.ethical-junction.org\/member\/org-6057.html\" target=\"new.window\"><img src=\"ethical-logo1.gif\" width=\"132\" height=\"34\" alt=\"The Mexican Hammock Co - UK is a member of ETHICAL JUNCTION\" border=\"0\"><\/A><\/TD><TD align=\"left\">'+navsubnewinsert+'<A href="javascript:OpenCertDetails()"><IMG SRC="geotrust_seal.gif" VSPACE="0" HSPACE="10" BORDER="0" LOOP="0" ALT="säkrad av DIBS" ALIGN="absmiddle"><\/a><\/TD><\/TR><\/TABLE><\/TD><\/TR>';

if(liveinfo == "yes"){
var littlesubnew1 = '<td align=left valign=top>'+littlesubnewinsert+'<\/td>';
var littlesubnew2 = '<td align=right valign=top>'+littlesubnewinsert+'<\/td>';
}else{
var littlesubnew1 = '';
var littlesubnew2 = '';
}
//
//
var bikky = document.cookie;
var today = new Date();
var expireDate = new Date(today.getTime() +  24 * 60 * 60 * 1000); // plus 24 hours            
//var expireDate = new Date(today.getTime() +  2 * 60 * 1000); // plus 2 minutes            
var width=100;
var pos=1-width;



//****************************************
//function OpenCertDetails() { thewindow = window.open('https://www.thawte.com/cgi/server/certdetails.exe?code=GBTHEM18-1', 'anew', config='height=400,width=450,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes'); } 
//function OpenCertDetails() { thewindow = window.open('https://secure.hammocks.co.uk/thawte_validate.html', 'anew', config='height=310,width=510,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes'); } 
function OpenCertDetails() { thewindow = window.open('http://www.dibs.se/om-oss/verksamheten/', '', config='height=450,width=900,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes'); } 
function OpenSafeBuy() { thewindow = window.open('http://www.safebuy.org.uk/certificate/751e50dd-0793-49d8-9c68-a980de0c7830.html', '', config='height=350,width=350,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=yes'); } 
function OpenEJ() { thewindow = window.open('http://www.ethical-junction.org/member/org-6057.html', '', config='height=600,width=800,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=yes'); } 
//****************************************
menuname="";
now=new Date;
datei=now.getDate();
monthi=now.getMonth()+1;
houri=now.getHours();
thisYr=now.getYear();
	if(thisYr<1900){
	thisYr=thisYr+1900
	}
nextYr=thisYr+1;

//TODAY 15/11 input 10,15
//XMAS DAY 25/12 input 11,25
//mother=new Date(thisYr,11,25);
//MOTHERS DAY 21/03/04 input 2,21
//mother=new Date(thisYr,2,21);
//FATHERS DAY 20/06/04 input 5,20
//mother=new Date(thisYr,11,25);
//SALE DAY 23/05/05 input 4,23
//SALE DAY 30/06/05 input 5,30
//SALE DAY 29/09/05 input 8,29
//VALENTINE DAY 14/02/05 input 01,14
//MOTHERS DAY 06/03/04 input 2,06
//EASTER DAY 27/03/05 input 2,27


mother=new Date(thisYr,11,25);
	if (mother.getTime() < now.getTime()){
	mother.setYear(nextYr)
	}
post=new Date(thisYr,11,18);
	if (post.getTime() < now.getTime()){
	post.setYear(nextYr)
	}
nyr=new Date(nextYr,0,1)
	if (nyr.getTime() < now.getTime()){
	nyr.setYear(nextYr)
	}
//****************************************
function type(){
    var strLen=scrlStr.length;
    var type = "";                
    pos++;                          
    if(pos==strLen){          
       pos=1-width;
    }         
    if(pos<0){                   
       for(var i=1;i<=Math.abs(pos);i++){
           type=type+"";  
       }
      type=type+scrlStr.substring(0,width-i+1);
    }else{
       type=type+scrlStr.substring(pos,pos+width);
    }
      window.status=type;         
//    setTimeout("type()",25);    
    setTimeout("type()",80);    
}
//****************************************
function newWindow(content){
contentWindow = window.open(content, 'contentWin', 'width=590, height=530, scrollbars=yes toolbar=no, location=no');
contentWindow.focus()
}
//****************************************
function dateWindow(content){
contentdateWindow = window.open(content, 'contentdateWin', 'width=500, height=400, scrollbars=yes toolbar=yes, resizable=yes, location=yes');
contentdateWindow.focus()
}
//****************************************
function dateWindow1(content){
contentdateWindow = window.open(content, 'contentdateWin', 'width=800, height=400, scrollbars=yes toolbar=no, resizable=yes, location=no');
contentdateWindow.focus()
}
//****************************************
function linkWindow(content){
contentlinkWindow = window.open(content, 'contentlinkWin', 'width=800, height=400, scrollbars=yes toolbar=no, resizable=yes, location=no');
contentlinkWindow.focus()
}
//****************************************
function mapWindow(content){
contentmapWindow = window.open(content, 'contentmapWin', 'width=800, height=450, scrollbars=no toolbar=no, resizable=no, location=no');
contentmapWindow.focus()
}
//****************************************
function gomain(){
	self.location="aboutus.htm";		
	}
//****************************************
function womad(){
	RecWindow=window.open('http://www.womad.org/reading/','RecWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=480,height=600');		
	}
//****************************************
function priv(){
	PrivWindow=window.open('privacy4.htm','PrivWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=300,height=400');		
	}
//****************************************
function jute(){
	PrivWindow=window.open('jute_bag.htm','JuteWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=300,height=400');		
	}
//****************************************
function backpack(){
	PrivWindow=window.open('backpack.htm','BackpackWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=300,height=430');		
	}
//****************************************
function hammock_stand_info(){
	PrivWindow=window.open('hammock_stand_info.htm','StandWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=300,height=510');		
	}
//****************************************
function which(){
	WhichWindow=window.open('which.htm','WhichWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=300,height=400');		
	}
//****************************************
function referrer() {
//	document.write('<script src=\"dates'+monthi+'.js\"><\/script>');
	var fromwhere = getCookie("Referrer");
	var frompage = getCookie("EntryPage");
    	if (fromwhere == null || fromwhere == ""){
		var fromwhere=document.referrer;
		setCookie("Referrer",fromwhere);
	}
    	if (frompage == null || frompage == ""){
		var frompage=favurl;
		setCookie("EntryPage",frompage);
	}
}
//****************************************
function referrertestindex() {
	var fromwhere = getCookie("Referrer");
	var frompage = getCookie("EntryPage");
	capable = 'no';
	linkURL = "hammocks.htm";
	if (parent.document.URL) {
		callingURL = parent.document.URL;
			if (callingURL.indexOf('?') != -1) {

				if (callingURL.indexOf('$') != -1 && callingURL.indexOf('&') != -1) {
				linkURL = callingURL.substring(callingURL.indexOf('&')+1,callingURL.length);
				}else{
				linkURL = callingURL.substring(callingURL.indexOf('?')+1,callingURL.length);
				}
			}

	}
    	if (fromwhere == null || fromwhere == ""){
		if (parent.document.URL) {
			callingURL = parent.document.URL;
			if (callingURL.indexOf('?') != -1) {
				if (callingURL.indexOf('$') != -1 && callingURL.indexOf('&') != -1) {
				fromwhere = callingURL.substring(callingURL.indexOf('$')+1,callingURL.indexOf('&'));
				linkURL = callingURL.substring(callingURL.indexOf('&')+1,callingURL.length);
				}else{
				fromwhere = document.referrer;
				linkURL = callingURL.substring(callingURL.indexOf('?')+1,callingURL.length);
				}
			}
			frompage = linkURL;
		}else{
			fromwhere = document.referrer;
			linkURL = "hammocks.htm";
			frompage = "TESTINDEX5.HTM";
		}
		if (fromwhere == null || fromwhere == ""){
			fromwhere = "NONE FOUND AT TESTINDEX.HTM";
		}
		setCookie("Referrer",fromwhere);
		setCookie("EntryPage",frompage);
	}
}
//****************************************
function referrerindex() {
	var fromwhere = getCookie("Referrer");
	var frompage = getCookie("EntryPage");
	if (fromwhere == null || fromwhere == ""){
		if (parent.document.URL) {
			callingURL = parent.document.URL;
			if (callingURL.indexOf('?') != -1) {
				fromwhere = callingURL.substring(callingURL.indexOf('?')+1,callingURL.length);
			}else{
				fromwhere = document.referrer;
			}
		}else{
				fromwhere = document.referrer;
		}
		if (fromwhere == null || fromwhere == ""){
			fromwhere = "NONE FOUND AT INDEX.HTM";
		}
	setCookie("Referrer",fromwhere);
	}
	if (frompage == null || frompage == ""){
		frompage="INDEX.HTM";
		setCookie("EntryPage",frompage);
	}
}
//****************************************
function user() {
	if (username != "" && username != null){
	document.writeln('<TABLE WIDTH=518 CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\">');
	document.writeln('<tr><td bgcolor=\"#68AE6C\" height=\"35\" align=center><font color=\"#000000\"><P><strong><font face=\"Arial\" size=\"2\">You are logged in as: ' + username + '</font></strong> </font></td></tr>');			
	document.writeln('<\/TABLE>');
	}
}
//****************************************
function userextradisc() {
	if (username != "" && username != null){
	document.write('<table width=518 CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\"><tr><td colspan=\"5\" bgcolor=\"#68AE6C\" height=\"35\"><font color=\"#000000\"><P><strong><font face=\"Arial\" size=\"2\">Members receive an extra 10% discount on this item.<\/font><\/strong> <\/font><\/td><\/tr><\/table>');
	}
}
//****************************************
function noextradisc() {
	if (username != "" && username != null){
	document.write('<table width=518 CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\"><tr><td colspan=\"5\" bgcolor=\"#68AE6C\" height=\"35\"><font color=\"#000000\"><P><strong><font face=\"Arial\" size=\"2\">It is not possible to offer a further Members Discount on this item.<\/font><\/strong> <\/font><\/td><\/tr><\/table>');
	}
}
//****************************************
function addToFavorites(favurl,favpage) {
	if (window.external) {
		window.external.AddFavorite(favurl,favpage)
	}  else  { 
	alert("Sorry! Your browser doesn't support this function.");
	}
}
//****************************************
function recommend(recpage){
	RecWindow=window.open(recpage,'RecWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=480,height=600');		
	}
//****************************************
function formHandler(form) {
	if (form.site.options[form.site.selectedIndex].value == "privacy4.htm"){
	priv()
	} else {
	var URL = form.site.options[form.site.selectedIndex].value;
//	URL="testindex5.htm?" + URL;
	top.location.href = URL;
	}
}
//****************************************
function navformHandler(form) {
	if (form.site.options[form.site.selectedIndex].value == "privacy4.htm"){
	priv()
	}
 else {
	var URL = form.site.options[form.site.selectedIndex].value;
//	parent.frames["main"].location.href = URL;
//	self.location="navtop3.htm";
	self.location=URL;
	}
}
//****************************************
function direct(URL) {
	parent.frames["main"].location.href = URL;
}
//****************************************
function catmenu(menu){
menuname="cat";
if(parent.left){
if(parent.left.navloaded==1){
	parent.left.change();
	parent.left.uplink(menu);
	parent.left.popUp('catalogueKick',true);

}else{
	setTimeout("catmenu('"+menu+"')",100);
}
}else{
	setTimeout("catmenu('"+menu+"')",100);
}
}
//****************************************
function infomenu(menu){
if(parent.left){
if(parent.left.navloaded==1){
	parent.left.change();
	parent.left.uplink(menu);
	parent.left.popUp('hammockinfoKick',true);
}else{
	setTimeout("infomenu('"+menu+"')",100);
}
}else{
	setTimeout("infomenu('"+menu+"')",100);
}
}
//****************************************
function initmenu(menu){
if(parent.left){
if(parent.left.navloaded==1){
	parent.left.change();
//	parent.left.highlight(menu);
	parent.left.popUp('initialKick',true);
}else{
	setTimeout("initmenu('"+menu+"')",100);
}
}else{
	setTimeout("initmenu('"+menu+"')",100);
}
}
//****************************************
function ordermenu(menu){
if(parent.left){
if(parent.left.navloaded==1){
	parent.left.change();
	parent.left.uplink(menu);
	parent.left.popUp('orderingKick',true);
}else{
	setTimeout("ordermenu('"+menu+"')",100);
}
}else{
	setTimeout("ordermenu('"+menu+"')",100);
}
}
//****************************************
function enqmenu(menu){
if(parent.left){
if(parent.left.navloaded==1){
	parent.left.change();
	parent.left.uplink(menu);
	parent.left.popUp('enquiriesKick',true);
}else{
	setTimeout("enqmenu('"+menu+"')",100);
}
}else{
	setTimeout("enqmenu('"+menu+"')",100);
}
}
//****************************************
function affmenu(menu){
if(parent.left){
if(parent.left.navloaded==1){
	parent.left.change();
	parent.left.uplink(menu);
	parent.left.popUp('affiliatesKick',true);
}else{
	setTimeout("affmenu('"+menu+"')",100);
}
}else{
	setTimeout("affmenu('"+menu+"')",100);
}
}
//****************************************
function specmenu(menu){
if(parent.left){
if(parent.left.navloaded==1){
	parent.left.change();
	parent.left.uplink(menu);
	parent.left.popUp('specialsKick',true);
}else{
	setTimeout("specmenu('"+menu+"')",100);
}
}else{
	setTimeout("specmenu('"+menu+"')",100);
}
}
//****************************************
function locmenu(menu){
if(parent.left){
if(parent.left.navloaded==1){
	parent.left.change();
	parent.left.uplink(menu);
	parent.left.popUp('locationKick',true);
}else{
	setTimeout("locmenu('"+menu+"')",100);
}
}else{
	setTimeout("locmenu('"+menu+"')",100);
}
}
//****************************************
function linkmenu(menu){
if(parent.left){
if(parent.left.navloaded==1){
	parent.left.change();
	parent.left.uplink(menu);
	parent.left.popUp('linksKick',true);
}else{
	setTimeout("linkmenu('"+menu+"')",100);
}
}else{
	setTimeout("linkmenu('"+menu+"')",100);
}
}
//****************************************
function convert(){
	MyWindow=window.open('convertgrand.htm','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=320');		
	}
//****************************************
function map(){
	MyWindow=window.open('http://www.maporama.com/share/Map.asp?MapID=54960DDE%2D1A3A%2D4A3F%2DA98E%2D351C650FDDFB&PDT=mapomap','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=590,height=650');		
	}
//****************************************
function selectItem(newItem, newPrice, newTaxable, newWeight, newURL, hammockselect, fixingselect,ponchoselect,saltilloselect, newQuantity) {
        if(newQuantity<=0) {
            rc = alert('The quantity entered is incorrect');
        } else {
giftselect=newItem+' '+hammockselect+fixingselect+ponchoselect+saltilloselect;
buyItem(giftselect,newPrice,newTaxable,newWeight, newURL,newQuantity);
        }
   }
//****************************************
function choose_card(cardname) {

                index=document.cookie.indexOf('ThePurchases');
                countbegin=(document.cookie.indexOf('=',index)+1);
                countend=document.cookie.indexOf(';',index);
                if(countend==-1) {
                    countend=document.cookie.length;
                }
	cardpos=document.cookie.indexOf('Gift Wrapping');

               document.cookie='ThePurchases='+document.cookie.substring(countbegin,cardpos)+'Gift Wrapping With Card '+cardname+document.cookie.substring(cardpos+13,countend)+'; expires=' + expireDate.toGMTString();
self.location="purchases.htm";
}
//****************************************
no_wrp_ban=10;
wrp_ban = new Array(no_wrp_ban);
wrp_ban[0]="Mexican Hammock Stand";
wrp_ban[1]="Family Swing Hammock Stand";
wrp_ban[2]="Guyed Post Stand (Single End)";
wrp_ban[3]="Guyed Post Stand (Complete)";
wrp_ban[4]="Gothic Chimenea (Green)";
wrp_ban[5]="Gothic Chimenea (Brown)";
wrp_ban[6]="Rustic Chimenea (Green)";
wrp_ban[7]="Rustic Chimenea (Brown)";
wrp_ban[8]="Mariposa Hammock Stand";
wrp_ban[9]="Hammock Chair";



function wrapit(newItem, newPrice, newTaxable, newWeight, newURL, newQuantity) {
//		confirm('wrp_banned = '+wrp_banned);
	if(wrp_banned != -1){
		confirm('Sorry - We can\'t Gift Wrap this order due to the '+wrp_ban[wrp_banned]);
	}else{
		if (username != "" && username != null){
			wrap_text="Include Free Member\'s Gift Wrapping ?";
			newPrice=0.00;
		}else{
			wrap_text="Gift Wrap This Order For £2.75 ?";
		}
			if (confirm(wrap_text)) {
               				countbegin=(document.cookie.indexOf('=',index)+1);
                				countend=document.cookie.indexOf(';',index);
                					if(countend==-1) {
                    					countend=document.cookie.length;
                					}
                				document.cookie='ThePurchases='+document.cookie.substring(countbegin,countend)+'['+newItem+'|'+newPrice+'|'+newTaxable+'|'+newWeight+'|'+newURL+'|'+newQuantity+']; expires=' + expireDate.toGMTString();
            			}
	}
}
//****************************************
function buyAcc(newItem, newQuantity){
//newItem, newPrice, newTaxable, newWeight, newURL, newQuantity

		newPrice=0;
		newWeight=0;
		newURL="";

for(var i=1;i<=item_no;i++){
	if(newItem == item_name[i]){
		newPrice=item_price[i];
		newWeight=item_weight[i];
		newURL=item_URL[i];
//document.write(newItem+','+newPrice+', 0,'+newWeight+','+newURL+','+newQuantity);
	}
}

//document.write(newItem+','+newPrice+', 0,'+newWeight+','+newURL+','+newQuantity);
//document.write(thisURL+','+newItem+','+newPrice+', 0,'+newWeight+','+newURL+','+newQuantity);						
buyItem(newItem, newPrice, 0, newWeight, newURL, newQuantity);
}


//*******************************************************************
function buyItem(newItem, newPrice, newTaxable, newWeight, newURL, newQuantity) {
	if(newQuantity<=0) {
		rc = alert('The quantity entered is incorrect');
	} else if(newItem==""){
		rc = alert('Please make a selection');
	} else {
		if (confirm('Vill du lägga '+newQuantity+' x '+newItem+' i varukorgen? ')) {
			index=document.cookie.indexOf('ThePurchases');
			countbegin=(document.cookie.indexOf('=',index)+1);
			countend=document.cookie.indexOf(';',index);
			if(countend==-1) {
				countend=document.cookie.length;
			}
			document.cookie='ThePurchases='+document.cookie.substring(countbegin,countend)+'['+newItem+'|'+newPrice+'|'+newTaxable+'|'+newWeight+'|'+newURL+'|'+newQuantity+']; expires=' + expireDate.toGMTString();
		}
// strip out Wrapping if banned item
				wrp_banned=0;
				for(var wrp_i=0;wrp_i<=no_wrp_ban;wrp_i++) {
					if(newItem == wrp_ban[wrp_i]){
						wrp_banned++;
					}
				}

		if(wrp_banned != 0 && document.cookie.indexOf('Gift Wrapping') != -1){
// remove wrapping & notify
			index = document.cookie.indexOf('ThePurchases');
			countbegin=(document.cookie.indexOf('=',index)+1);
			countend=document.cookie.indexOf(';',index);
			if (countend==-1) {
				countend=document.cookie.length;
			}
			fulllist=document.cookie.substring(countbegin,countend);
			newItemList=null;
			thisitem=0;
			for(var i=0; i<=fulllist.length;i++) {
				if(fulllist.substring(i,i+1)=='[') {
					itemstart=i+1;
				}else if (fulllist.substring(i,i+1)==']') {
					itemend=i;
					theitem = fulllist.substring(itemstart,itemend);
					if(theitem.indexOf('Gift Wrapping') ==-1){
						newItemList = newItemList+'['+fulllist.substring(itemstart,itemend)+']';
					}else{
						rc = alert('We\'ve removed your Gift Wrapping selection as we can\'t Gift Wrap this item.');
					}
				}
			}
			document.cookie='ThePurchases='+newItemList+'; expires=' + expireDate.toGMTString();
		}
        	}
   }
//****************************************
function buyItemmess(newItem, newPrice, newTaxable, newWeight, newURL, newQuantity,mess) {
        if(newQuantity<=0) {
            rc = alert('The quantity entered is incorrect');
        } else {
            if (confirm(mess+ 'add '+newQuantity+' x '+newItem+' to basket? ')) {
                index=document.cookie.indexOf('ThePurchases');
                countbegin=(document.cookie.indexOf('=',index)+1);
                countend=document.cookie.indexOf(';',index);
                if(countend==-1) {
                    countend=document.cookie.length;
                }
                document.cookie='ThePurchases='+document.cookie.substring(countbegin,countend)+'['+newItem+'|'+newPrice+'|'+newTaxable+'|'+newWeight+'|'+newURL+'|'+newQuantity+']; expires=' + expireDate.toGMTString();
//self.location="purchases.htm";
            }
        }
   }
//****************************************
function goBuy() {
        ilist='';
        index=document.cookie.indexOf('ThePurchases');
        countbegin=(document.cookie.indexOf('=', index)+1);
        countend=document.cookie.indexOf(';',index);
        if(countend==-1) { countend=document.cookie.length; }
        fulllist=document.cookie.substring(countbegin,countend);
        for(var i=0; i<= fulllist.length;i++) {
            if(fulllist.substring(i,i+1)=='[') {
                itemstart=i;
            } else if (fulllist.substring(i,i+1)==']') {
                itemend=i+1;
                ilist=ilist+fulllist.substring(itemstart,itemend);
            }
        }
        ilist=changeSpaces(ilist);
        top.location='process.htm?items='+ilist;
    }
//****************************************
function changeSpaces(tstring) {
        nstring='';
        for (var i=0; i <= tstring.length; i++) {
            if (tstring.charAt(i)==' ') { nstring=nstring+'^';
            } else { nstring=nstring+tstring.charAt(i); }
        }
        return nstring;
    }
//****************************************
function getCookie(name) { // use: getCookie("name");
	var index = bikky.indexOf(name + "=");
	if (index == -1) return null;
	index = bikky.indexOf("=", index) + 1;
	var endstr = bikky.indexOf(";", index);
	if (endstr == -1) endstr = bikky.length;
	return unescape(bikky.substring(index, endstr));
}
//****************************************
function setCookie(name, value) {
    if (value != null && value != ""){
	document.cookie=name + "=" + escape(value) + ";expires=" + expireDate.toGMTString();
	bikky = document.cookie;
		}
	}
//****************************************
function protect() {
var message="This material is protected by International Copyright Legislation";
function mind(z) {
	if (document.all) {
		if (event.button == 2) {
		alert(message);
		return false;
		}
	} else {
		if (z.which == 3) {
		alert(message);
		return false;
		}
	}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=mind;
}
//****************************************
function basketbutton() {
//document.writeln('<P>&nbsp\;<center><TABLE CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\"><TR><TD align=center colspan=3><A HREF=\"purchases.htm\"><img src=\"btnViewBasket2.gif\" border=0><\/A><\/td><\/tr><\/table><\/center>')
document.writeln('<P>&nbsp\;<center><TABLE CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\"><TR><TD><A HREF=\"purchases.htm\"><img src="img\/bview1_out.gif" border=0 align="center"><\/A><\/td><\/tr><\/table><\/center>')
}
//****************************************
function catbutton() {
document.writeln('<P>&nbsp\;<center><TABLE CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\"><TR><TD align=center colspan=3><A HREF=\"hammocks.htm\"><IMG SRC=\"btnEnterCat2.gif\" border=\"0\"><\/A><\/TD><\/TR><\/TABLE><\/center>')
}
//****************************************
function backtocatbutton() {
document.writeln('<P>&nbsp\;<center><TABLE CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\"><TR><TD align=center colspan=3><A HREF='+ backurl +'><IMG SRC=\"btnbacktobutik.gif\" border=\"0\"><\/A><\/TD><\/TR><\/TABLE><\/center>')
}
//****************************************
function enter() {
document.writeln('<P><A HREF=\"hammocks.htm\"><center><u><FONT SIZE=\"\+2\" FACE=\"Arial\" COLOR=\"#527B10\">click here to enter site<\/FONT><\/u><\/center><\/A>')
}
//****************************************
function goweather() {
//	URL="http://localhost/cgi-bin/weather/weather.cgi";
	URL="http://www.hammocks.co.uk/cgi-bin/weather/weather.cgi";
	WeatherWindow=window.open(URL,'WeatherWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=505,height=397');		
	WeatherWindow.focus();
}
//****************************************
function weather() {
document.write('<A href="javascript:goweather()"><P class=slide><font color=\"#527B10\"><i><b>Five Day Weather Forecast for the UK<\/b><\/i><\/font><\/a><br>\&nbsp\;');
}
//****************************************
function navcombo() {
document.write('<STYLE>');
document.write('P.ethical {font-size:8pt\; font-weight:normal\; color:black\; text-decoration:none\; background-color: #FFFFFF}');
document.write('<\/STYLE>');
document.write('<TABLE CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\">');
document.write('<TR><TD align=center colspan="3">&nbsp;<\/TD><\/TR>');

//document.write('<TR><TD align=\"center\" colspan="3"><TABLE border=0><TR><TD><A href="javascript:OpenCertDetails()"><IMG SRC="thawte_seal.gif" VSPACE="0" HSPACE="10" BORDER="0" LOOP="0" ALT="Secure site" ALIGN="absmiddle"><\/a><\/TD><TD align=center width=150><P class=ethical><IMG SRC=\"hands1-65bw.jpg\" width=\"132\" height=\"65\" VSPACE=\"5\" HSPACE=\"0\" BORDER=\"1\" ALT=\"Supporting fair trade in rural Mexico since 1983\"><br><a href=\"http:\/\/www.ethical-junction.org\/member\/org-6057.html\" target=\"new.window\"><img src=\"ethical-logo1.gif\" width=\"132\" height=\"34\" alt=\"a member of ethical junction\" border=\"0\"><\/A><\/TD><TD><A href="javascript:OpenCertDetails()"><IMG SRC="thawte_seal.gif" VSPACE="0" HSPACE="10" BORDER="0" LOOP="0" ALT="Secure site" ALIGN="absmiddle"><\/a><\/TD><\/TR><\/TABLE><\/TD><\/TR>');
document.write(navsubnew);

document.write('<tr><td align=center colspan="3">&nbsp\;<\/td><\/tr>');
document.write('<tr><td align=center><FORM name = \"form\">');
document.write('<SELECT NAME=\"site\" SIZE=1 onChange =\"formHandler(this.form)\">');
document.write('<OPTION VALUE=\"\">Butik ..........');
document.write('<OPTION VALUE=\"hammocks.htm\">Hängmattor');
document.write('<OPTION VALUE=\"frames.htm\">Ställning Och Byggsats');
document.write('<OPTION VALUE=\"specials.htm\">Specialerbjudande');
document.write('<\/SELECT><\/FORM><\/td><td align=center><FORM name = \"form\">');
document.write('<SELECT NAME=\"site\" SIZE=1 onChange =\"formHandler(this.form)\">');
document.write('<OPTION VALUE=\"\">Hängmattor Info ....');
document.write('<OPTION VALUE=\"aboutus.htm\">Om Oss');
document.write('<OPTION VALUE=\"abouthammocks.htm\">Om Hängmattor');
document.write('<OPTION VALUE=\"whyus.htm\">Varför Handla Av Oss?');
document.write('<OPTION VALUE=\"gardens.htm\">I Trädgården');
document.write('<OPTION VALUE=\"gifts.htm\">Den Perfekta Gåvan');
document.write('<OPTION VALUE=\"hanging.htm\">Upphängningstips');
document.write('<OPTION VALUE=\"gettingin.htm\">Att Komma Upp I Hängmattor');
document.write('<OPTION VALUE=\"care.htm\">Skötsel Och Hantering');
document.write('<OPTION VALUE=\"beach.htm\">På Stranden');
document.write('<OPTION VALUE=\"stress.htm\">Stresslindring');
document.write('<OPTION VALUE=\"pool.htm\">Vid Swimmingpoolen');
document.write('<OPTION VALUE=\"history.htm\">Historia');
document.write('<\/SELECT><\/FORM><\/td><td align=center><FORM name = \"form\">');
document.write('<SELECT NAME=\"site\" SIZE=1 onChange =\"formHandler(this.form)\">');
document.write('<OPTION VALUE=\"\">Beställa Info ......');
document.write('<OPTION VALUE=\"delivery.htm\">Leverans Tider');
document.write('<OPTION VALUE=\"payment.htm\">Betalning');
document.write('<OPTION VALUE=\"guarantee.htm\">Vår Garanti');
document.write('<OPTION VALUE=\"security.htm\">Säkerhet');
document.write('<OPTION VALUE=\"privacy4.htm\">Din Privat');
document.write('<OPTION VALUE=\"contact.htm\">Kontact');
document.write('<OPTION VALUE=\"enquiry.htm\">Förfrågan Formulär');
document.write('<OPTION VALUE=\"hammocks-location.htm\">Var Är Vi');
//document.write('<OPTION VALUE=\"press.htm\">Press Info');
//document.write('<OPTION VALUE=\"converter.htm\">Kr/€/£/$ Converter');
document.write('<OPTION VALUE=\"converter.htm\">Valuta Omformaren');
//document.write('<OPTION VALUE=\"affiliateinfo.htm\">Affiliates');
document.write('<\/SELECT><\/FORM><\/td><\/tr><\/table>');
}
//****************************************
function addtofavbott() {
tabstart();
datemessagebott();
bookit();
tabend();
}
//****************************************
function addtofav() {
tabstart();
if(menuname != "cat"){
maindate();
}
datemessage();
bookit();
tabend();
}
//****************************************
function tabstart() {
document.write('<TABLE width=518 CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\">');
document.write('<TR><TD align=center nowrap>');
}
/////////////////////////
function count() {
if (secsTill(nyr)<1){
window.location.href = self.location;
}
if (daysTill(nyr)<12) {
document.theForm.countdown.value = secsTill(nyr);
setTimeout("count()",1000)
}
}
//****************************************
function maindate() {
                var isnMonths=new Array("januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december");
                var isnDays= new Array("söndagen","måndagen","tisdagen","onsdagen","torsdagen","fredagen","lördagen","söndagen");
                today=new Date();
                document.write("<p class=slide>&nbsp\;Idag är "+isnDays[today.getDay()] +", "+today.getDate()+" "+isnMonths[today.getMonth()]+" " +thisYr);




			document.write('<IMG SRC="space.gif" width="15" height="10"><p class=slide><i>(om denna datum är inkorrekt ska du ändra din klocka på din dator.)<\/i><br>&nbsp\;');
}
//****************************************

//document.write(daysTill(mother));
//special_message="no";
purchase_message="yes";
special_message="yes";
//sp_message="!! Ridiculously Low Prices For The Spring Season !!";
//sp_message="!! OTROLIGT LÅGA PRISER FÖR HÖSTSÄSONGEN 2007 !!";
//sp_message="!! VARAN MELLANDAGSREA ÄR REDAN I FULLT FART !! <br>!! OM DIN BESTÄLLNING HAR KOMMIT IN TILL OSS 17 DECEMBER KAN VI LEVERERAR VAROR INNAN JUL !!";
//sp_message="!! VARAN VINTER REA ÄR REDAN I FULLT FART !! ";
//sp_message="!! VARAN VÅR REA ÄR REDAN I FULLT FART !! ";
//sp_message="!! VARAN SOMMAR REA ÄR REDAN I FULLT FART !! ";
sp_message="\".... Mexican Hammock Company ligger miltals före den övriga branschen när det gäller kvalitet, storlek, tips och råd .... de fortsätter att försörja hundratals av vävkonstnärer och deras familjer på den mexikanska landsbygden .... och deras villkor kontrolleras av en etisk förbindelse ...\"";
//sale_message="HÖST REA ÄR IGÅNG";
//sale_message="MELLANDAGSREA";
//sale_message="VÅR REA";
//sale_message="SOMMAR REA";
//sale_message="VINTER REA";
//sale_message="HÖST REA";
if(daysTill(mother)>=3){
		if (daysTill(mother)==3){
			if(houri < 10) {
				sale_message="<img src=\"Sale_Button.gif\" border=\"0\" width=\"30\" height=\"18\" hspace=\"10\">!! VINTER REA ÄR IGÅNG!!<img src=\"Sale_Button.gif\" border=\"0\" width=\"30\" height=\"18\" hspace=\"10\">";
			}else{
				sale_message="<img src=\"Sale_Button.gif\" border=\"0\" width=\"30\" height=\"18\" hspace=\"10\">!! VINTER REA ÄR IGÅNG!!<img src=\"Sale_Button.gif\" border=\"0\" width=\"30\" height=\"18\" hspace=\"10\">";
			}
		}else{
			sale_message="<img src=\"Sale_Button.gif\" border=\"0\" width=\"30\" height=\"18\" hspace=\"10\">!! VINTER REA ÄR IGÅNG !!<img src=\"Sale_Button.gif\" border=\"0\" width=\"30\" height=\"18\" hspace=\"10\">";
//			sale_message="<img src=\"Sale_Button.gif\" border=\"0\" width=\"30\" height=\"18\" hspace=\"10\">!! VÅR REA ÄR IGÅNG !!<img src=\"Sale_Button.gif\" border=\"0\" width=\"30\" height=\"18\" hspace=\"10\">";
		}
}else{
		sale_message="<img src=\"Sale_Button.gif\" border=\"0\" width=\"30\" height=\"18\" hspace=\"10\">!! VINTER REA ÄR IGÅNG!!<img src=\"Sale_Button.gif\" border=\"0\" width=\"30\" height=\"18\" hspace=\"10\">";
}
//		sale_message_bott="!! VÅR REA ÄR IGÅNG !!";
		sale_message_bott="!! VINTER REA ÄR IGÅNG !!";


//****************************************
function datemessage() {


if(special_message == "yes"){
	               		document.write('<table width=600><tr><td><p class=tophead align=justify><b>'+sp_message+'<\/b><\/td><\/tr><\/table>');
}
if(sale_message != ""){
//	               		document.write('<P><A HREF="hammocks.htm" target="main"><font color=red><B>'+sale_message+daysTill(mother)+'<\/B><\/font><\/a>');
	               		document.write('<P><A HREF="hammocks.htm" target="main"><font color=red><B>'+sale_message+'<\/B><\/font><\/a>');
//	               		document.write('<P><font color=red><B>'+sale_message+'<\/B><\/font>');
}


}
//****************************************
function datemessagebott() {

//		document.write("<p><font color=blue>daysTill(mother)="+daysTill(mother)+"</font></B>");

if(special_message == "yes"){
//			if (daysTill(mother)<10 || daysTill(mother)>16) {
	               		document.write('<table width=600><tr><td><p class=tophead align=justify><b>'+sp_message+'<\/b><\/td><\/tr><\/table>');
//			}
}
if(sale_message != ""){
//	               		document.write('<P><A HREF="hammocks.htm" target="main"><font color=red><B><u>'+sale_message+'<\/u><\/B><\/font><\/a>');
	               		document.write('<P><font color=red><B>'+sale_message+'<\/B><\/font>');
}


}
//****************************************
function bookit() {
	if (document.all){
		document.write('<P class=slide><a href=javascript:addToFavorites(favurl,favpage)><font color=\"#527B10\"><u>Lägg till som bokmärke!<\/u><\/font><\/a><img src=\"space.gif\" width=50 height=1 border=0><a href=javascript:window.print()><font color=\"#527B10\"><u>Skriv ut!<\/u><\/font><\/a><img src=\"space.gif\" width=50 height=1 border=0><a href=javascript:recommend(recpage)><font color=\"#527B10\"><u>Berätta en vän!<\/u><\/font><\/a><P>');
	}else{
		document.write('<P class=slide><a href=javascript:window.print()><font color=\"#527B10\"><u>Skriv ut!<\/u><\/font><\/a><img src=\"space.gif\" width=100 height=1 border=0><a href=javascript:recommend(recpage)><font color=\"#527B10\"><u>Berätta en vän!<\/u><\/font><\/a><P>');
	}
}
//****************************************
function tabend() {
document.write('<\/TD><\/TR>');
document.write('<\/TABLE>');
}
//****************************************



//****************************************
function postcard() {
document.writeln('<TABLE width=518 CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\">');
document.writeln('<TR><TD colspan=3 align=center height=10><img src=\"blackdot.gif\" width=200 height=1><\/TD><\/TR>');
//document.writeln('<TR><TD align=right><a href=\"postcard\/card.html\"><img src=\"postbox.gif\" width=30 height=46 hspace=10 border=0 alt=\"Send a Virtual Postcard to a friend or loved one\"><\/a><\/TD><TD valign=\"middle\" align=center width=310><P class=slide><a href=\"postcard\/card.html\">Click <font color=\"#527B10\"><u>here<\/u><\/font> to send one of our<BR><FONT COLOR=red><B>Virtual Postcards<\/b></font> to a friend or loved one<\/a><br>or <a href=javascript:recommend(recpage)><font color=\"#527B10\"><u>here<\/u><\/font> to enter our <FONT COLOR=red><B>FREE DRAW !<\/b><\/FONT><\/a><\/TD><TD align=left><a href=\"postcard\/card.html\"><img src=\"postbox.gif\" width=30 height=46 hspace=10 border=0 alt=\"Send a Virtual Postcard to a friend or loved one\"><\/a><\/TD><\/TR>');
document.writeln('<TR><TD align=right><a href=\"postcard\/card.html\"><img src=\"postbox.gif\" width=30 height=46 hspace=10 border=0 alt=\"Send a Virtual Postcard to a friend or loved one\"><\/a><\/TD><TD valign=\"middle\" align=center width=310><P class=slide><a href=\"postcard\/card.html\">Click <font color=\"#527B10\"><u>here<\/u><\/font> to send one of our<BR><FONT COLOR=red><B>Virtual Postcards<\/b></font> to a friend or loved one<\/a><\/TD><TD align=left><a href=\"postcard\/card.html\"><img src=\"postbox.gif\" width=30 height=46 hspace=10 border=0 alt=\"Send a Virtual Postcard to a friend or loved one\"><\/a><\/TD><\/TR>');
document.writeln('<TR><TD colspan=3 align=center height=15><img src=\"blackdot.gif\" width=350 height=1><\/TD><\/TR>');
document.writeln('<\/TABLE>');
}
//****************************************
function footer() {
document.writeln('<TABLE width=100% CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\">');
document.writeln('<TR><TD align=center><P align=center><FONT SIZE=\"-1\" FACE=\"Arial\" COLOR=\"#527B10\">');
document.writeln('Hamacas.se (The Mexican Hammock Company) - Handvävda Mexikanska Hängmattor.<br>Stödjer rättvishandel med Mexiko sedan 1983.');
document.writeln('<\/FONT><\/CENTER>');
document.writeln('<\/TD><\/TR><\/TABLE>');
}
//****************************************
function pagefoot1() {
//basketbutton();
document.writeln('<P><HR width=500>');
navcombo();
//TodaySub1(datei);
addtofavbott();
//TodaySub1(datei);
//weather();
//postcard();
footer();
//protect();
}
//****************************************
function pagefootdate1() {
basketbutton();
navcombo();
//TodaySub1(datei);
addtofavbott();
//TodaySub1(datei);
//weather();
//postcard();
footer();
//protect();
}
//****************************************
function pagefoot2() {
catbutton();
navcombo();
//TodaySub1(datei);
addtofavbott();
//TodaySub1(datei);
//weather();
//postcard();
footer();
//protect();
}
//****************************************
function pagefootdate2() {
catbutton();
navcombo();
//TodaySub1(datei);
addtofavbott();
//TodaySub1(datei);
//weather();
//postcard();
footer();
//protect();
}
//****************************************
function pagefootgate() {
enter();
navcombo();
footer();
//protect();
}
//****************************************
function emailvalidation(entered, alertbox)
{
with (entered)
{
apos=value.indexOf("@"); 
dotpos=value.lastIndexOf(".");
lastpos=value.length-1;
if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) 
{if (alertbox) {alert(alertbox);} return false;}
else {return true;}
}
}
//****************************************
function valuevalidation(entered, min, max, alertbox, datatype)
{
with (entered)
{
checkvalue=parseFloat(value);
if (datatype)
{smalldatatype=datatype.toLowerCase();
if (smalldatatype.charAt(0)=="i") {checkvalue=parseInt(value)};
}
if ((parseFloat(min)==min && checkvalue<min) || (parseFloat(max)==max && checkvalue>max) || value!=checkvalue)
{if (alertbox!="") {alert(alertbox);} return false;}
else {return true;}
}
}
//****************************************
function digitvalidation(entered, min, max, alertbox, datatype)
{
with (entered)
{
checkvalue=parseFloat(value);
if (datatype)
{smalldatatype=datatype.toLowerCase();
if (smalldatatype.charAt(0)=="i") 
{checkvalue=parseInt(value); if (value.indexOf(".")!=-1) {checkvalue=checkvalue+1}};
}
if ((parseFloat(min)==min && value.length<min) || (parseFloat(max)==max && value.length>max) || value!=checkvalue)
{if (alertbox!="") {alert(alertbox);} return false;}
else {return true;}
}
}
//****************************************
function emptyvalidation(entered, alertbox)
{
with (entered)
{
if (value==null || value=="")
{if (alertbox!="") {alert(alertbox);} return false;}
else {return true;}
}
}
//****************************************
function formvalidation(enquiryform)
{
with (enquiryform)
{
if (emptyvalidation(a_Name,"Please enter your name")==false) {a_Name.focus(); return false;};
if (emptyvalidation(Email,"Please enter your E-mail address")==false) {Email.focus(); return false;};
if (emailvalidation(Email,"That doesn't look like a legal e-mail address to me")==false) {Email.focus(); return false;};
if (emptyvalidation(f_Comments,"Please enter your comments/enquiry")==false) {f_Comments.focus(); return false;};
//if (valuevalidation(Value,0,5,"Value MUST be in the range 0-5")==false) {Value.focus(); return false;};
//if (digitvalidation(Digits,12,16,"Incorrect Credit Card Number","I")==false) {Digits.focus(); return false;};
//if (emptyvalidation(Whatever,"The textfield is empty")==false) {Whatever.focus(); return false;};
}
}
//****************************************
/////////////////////////
function getdate(){
//	document.write('<script src=\"dates'+monthi+'.js\"><\/script>');
}

/////////////////////////
function dayToDays(inTime) {
return (Math.floor(inTime.getTime() / (1000 * 60 * 60 * 24)))
}

/////////////////////////
function daysTill(inDate) {
return dayToDays(inDate) - dayToDays(now)
}

/////////////////////////
function secToDays(inTime) {
return (Math.floor(inTime.getTime() / (1000)))
}

/////////////////////////
function secsTill(inDate) {
now=new Date;
thisYr=now.getYear();
if(thisYr<1900){
	thisYr=thisYr+1900
}
return secToDays(inDate) - secToDays(now)
}

/////////////////////////
function displaydate() {
//document.write(TODAY[datei]);



}
/////////////////////////
function TodayMain(TDAY){
//if (TODAY[TDAY]!="") {
//document.write("<TABLE align='center' CELLPADDING='1' CELLSPACING='0' BORDER='1' bordercolor=#FFFFFF bgcolor='#92DEC1'><TR><TD align=\'center\'><font size=1 color=green>");
//document.write(TODAY[TDAY]);
//document.write("<\/TD><\/TR><\/TABLE>");
//}
}
/////////////////////////
function TodaySub1(TDAY){
if (Today[TDAY]!="") {
document.write("<TABLE align='center' CELLPADDING='1' CELLSPACING='0' BORDER='1' bordercolor=#FFFFFF bgcolor='#92DEC1'><TR><TD><font size=1 color=green face=arial>");
document.write(Today[TDAY]);
document.write("<\/TD><\/TR><\/TABLE><p>");
}
}
/////////////////////////
var Burma="<A HREF=\"javascript:dateWindow('http:\/\/web.amnesty.org\/ai.nsf\/countries\/myanmar\?OpenView\&Start\=1\&Count\=30\&Expandall')\">Burma (Myanmar)<\/A>";
var BURMA="<A HREF=\"javascript:dateWindow('http:\/\/web.amnesty.org\/ai.nsf\/countries\/myanmar\?OpenView\&Start\=1\&Count\=30\&Expandall')\">BURMA (MYANMAR)<\/A>";
var Rwanda="<A HREF=\"javascript:dateWindow('http:\/\/www.amnesty.org\/ailib\/intcam\/rwanda\/main.htm')\">Rwanda<\/A>";
var RWANDA="<A HREF=\"javascript:dateWindow('http:\/\/www.amnesty.org\/ailib\/intcam\/rwanda\/main.htm')\">RWANDA<\/A>";
// Liverpool Dockers http://www.labournet.org/docks/other/ACTION.HTM
var TIBET="<A HREF=\"javascript:dateWindow('http:\/\/tibet.org.actadivina.com\/')\">TIBET<\/A>";
var Tibet="<A HREF=\"javascript:dateWindow('http:\/\/tibet.org.actadivina.com\/')\">Tibet<\/A>";
var CUBA="<A HREF=\"javascript:dateWindow('http:\/\/www.cuba-solidarity.org.uk\/')\">CUBA<\/A>";
var Cuba="<A HREF=\"javascript:dateWindow('http:\/\/www.cuba-solidarity.org.uk\/')\">Cuba<\/A>";
var WFD="<A HREF=\"javascript:dateWindow('http:\/\/www.fao.org\/wfd\/index_en.asp')\">WORLD FOOD DAY<\/A>";
var IDEP="<A HREF=\"javascript:dateWindow('http:\/\/www.un.org\/esa\/socdev\/poverty\/poverty.htm')\">INTERNATIONAL DAY FOR THE ERADICATION OF POVERTY<\/A>";
var ZIMBABWE="<A HREF=\"javascript:dateWindow('http:\/\/web.amnesty.org\/web\/content.nsf\/pages\/gbr_zimbabwe_impunity')\">ZIMBABWE<\/A>";

/////////////////////////
/////////////////////////
function flag(country){
flagimage="<IMG SRC=\"countries\/"+country+".gif\" width=\"15\" height=\"10\">\&nbsp\;";
return flagimage;
}
/////////////////////////
/////////////////////////
function amnesty(country){
amnestylink="<A HREF=\"javascript:dateWindow('http:\/\/web.amnesty.org\/ai.nsf\/countries\/"+country+"\?OpenView\&Start\=1\&Count\=30\&Expandall')\">"+country+"<\/A>";
return amnestylink;
}
/////////////////////////
/////////////////////////
function amnesty1(cty,country){
amnestylink="<A HREF=\"javascript:dateWindow1('http:\/\/web.amnesty.org\/library\/eng-"+cty+"\/index')\"><u>"+country+"<\/u><\/A>";
return amnestylink;
}
/////////////////////////
/////////////////////////
var EASTTIMOR="<A HREF=\"javascript:dateWindow('http:\/\/web.amnesty.org\/ai.nsf\/countries\/east+timor\?OpenView\&Start\=1\&Count\=30&Expandall')\">EAST TIMOR<\/A>";
var EastTimor="<A HREF=\"javascript:dateWindow('http:\/\/web.amnesty.org\/ai.nsf\/countries\/east\+timor\?OpenView\&Start\=1\&Count\=30\&Expandall')\">East Timor<\/A>";
