
var style_sheet = "index.css";
var header_link_shop_link_text = "Click here to visit our online store.";
var status_logo_hover = "Click to be directed to the homepage.";
var status_news_hover = "Click to view our latest news, or browse older news.";
var status_schools_hover = "Click to learn about how we help schools and how schools can help us.";
var status_business_hover = "Click to see how fairtrade can become a part of your business.";
var status_churches_hover = "Click to read about our relationship with local Churches.";
var status_about_us_hover = "Click to learn about us.";
var status_join_in_hover = "Click to read about our volunteering and membership.";
var status_what_is_fairtrade = "Click to read about fair trade.";
var status_contact = "Click to view our contact details.";
var status_bookmark = "Click here to add us to your bookmarks/favourites.";
var status_home = "Click here to be directed to the homepage.";
var status_shop = "Click here to go the online store.";
var status_sale_or_return = "Click here to go to the Sale or return page.";
var status_email_info = "Click to send an email to info@rainbowturtle in your default web client.";
var status_email_admin = "Click to send an email to admin@rainbowturtle in your default web client.";
var status_office_map = "Click to view a map with directions to the Fair Trade Hub, our office.";
var status_shop_map = "Click to view a map with directions to the Paisley Rainbow Turtle shop.";
var status_over_map = "Tip; You can click and Drag to move the map around.";
var status_view_larger_map = "Click to view this map on a GoogleMaps page.";
var status_back_to_contact = "Click to return to the Contact Page.";
var status_volunteer_application_form = "Click to download the volunteer application form.";
var status_membership_application_form = "Click to download the membership application form.";
var status_sale_or_return_form = "Click to download the sale or return form.";
var status_paisley_shop = "Click to view information and pictures of the Shop.";
var status_browse = "The drop down menu provides an A-Z listing of webpages.";
var status_top = "Click to scroll to the top of this page.";
var status_tofairtradefoundation = "Click to go to the Fairtrade Foundation website.";
var status_scottishfairtradeforum = "Click to visit the Scottish Fair Trade Forum website.";
var status_shop_index = "Click to return to the store index.";
var status_contact_form = "Click to use our online contact form.";
var status_my_account = "Click to go to my account.";
var status_cart = "Click to go to your shopping cart.";
var status_checkout = "Click to go to the online checkout.";
var status_view_product = "Click to view details and closeups.";
var status_add_to_cart = "Click to add this product to your cart; You can remove products later if you wish.";
var status_sold_out = "This item is sold out, but if you would like to order something similar please contact us.";
var status_view_cart = "Click to view your shopping cart on a single page.";
var status_view_checkout = "Click to confirm address and payment of your cart.";
var status_pagination_show = "Click to confirm number of items to be displayed per page.";
var status_pagination_previous = "Click to go to the previous page.";
var status_pagination_next = "Click to go to the next page.";
var status_pagination_number = "Click to go to the specified page."
var twitter_button_number = 1;
var twitter_status = "Click to find us on twitter";
var facebook_status = "Click to find us on facebook";
var status_photogallery_hover = "Click to view our shop photo gallery";

var banner_pos = 0;

function move_banner()
{
	if (banner_pos == 1)
	{
		document.getElementById('bottom_shadow_div').style.marginBottom="80px";
	}
	else
	{
		document.getElementById('bottom_shadow_div').style.marginBottom="0px";
	}
	banner_pos = 1 - banner_pos;
}

function set_status(val)
{
	/*if (window.innerHeight > 726) /* scrollBy(xnum,ynum) 
	{*/
	/*
	if (banner_pos == 1)
	{
		document.getElementById('bottom_shadow_div').style.marginBottom="0px";
	}
	else
	{
		document.getElementById('bottom_shadow_div').style.marginBottom="0px";
	}*/
	
	
		document.getElementById('bottom_shadow_div').style.display="inline";
		document.getElementById('status_text').innerHTML=val;
		document.getElementById('status_image').src="http://www.rainbowturtle.co.uk/image/click_this_handbow.gif";
	/*}*/
}
function reset_status()
{
	document.getElementById('bottom_shadow_div').style.display="none";
	document.getElementById('status_text').innerHTML="Welcome to the Rainbow Turtle website ~";
	document.getElementById('status_image').src="http://www.rainbowturtle.co.uk/image/wee_rainbow.gif";
}
function set_logohover()
{
	set_status(status_logo_hover);
	//document.getElementById('logo_link_image').src='http://www.rainbowturtle.co.uk/image/hover_logo.gif';
	//document.getElementById('logo_link_image').src='http://www.rainbowturtle.co.uk/image/logo_shop_greymultiply.png';
	document.getElementById('logo_link_image').src='http://www.rainbowturtle.co.uk/image/index_logo_bright.png';
}
function reset_logohover()
{
	reset_status();
	document.getElementById('logo_link_image').src='http://www.rainbowturtle.co.uk/image/index_logo.png';
}
function set_logohover_shop()
{
	//set_status(status_logo_hover);
	document.getElementById('logo_link_image').src='http://www.rainbowturtle.co.uk/image/index_logo_bright.png';
}
function reset_logohover_shop()
{
	//reset_status();
	document.getElementById('logo_link_image').src='http://www.rainbowturtle.co.uk/image/index_logo.png';
}

function load_actions()
{

	document.getElementById('header_link_shop_link').innerHTML=header_link_shop_link_text;
	document.getElementById('header_link_shop_link').target="_blank";
	//document.getElementById('header_link_shop_link').href="wip.html";
}
function set_image_gallery_selection(val)
{
	document.getElementById('image_gallery_selection').src=val;
}
function set_hovertwitter()
{
	set_status(twitter_status);
	change_twitter_button();
}
function reset_hovertwitter()
{
	reset_status();
	change_twitter_button();
}

function change_twitter_button()
{
	++twitter_button_number;
	if (twitter_button_number > 3)
	{
		twitter_button_number = 0;
	}
	
	switch (twitter_button_number)
	{
		case 0:	document.getElementById('twitter_button').style.background="url(http://twitter-badges.s3.amazonaws.com/follow_bird-a.png);";
		break;
		case 2:	document.getElementById('twitter_button').style.background="url(http://twitter-badges.s3.amazonaws.com/follow_bird-b.png);";
		break;
		default:
			document.getElementById('twitter_button').style.background="url(http://twitter-badges.s3.amazonaws.com/follow_bird-c.png);";
	}	
}


/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}





