function menuShow(toggleMe)
{
	var togglee = document.getElementById(toggleMe);
	togglee.style.visibility = 'visible'; 

}

function menuHide(toggleMe)
{
	var togglee = document.getElementById(toggleMe);
	togglee.style.visibility = 'hidden'; 
}






function socialLink(type)
{

if (type=="twitter")
	{
	location.href = "http://twitter.com/home?status="+document.title+"via%28purses.uk.com%29%29"+document.location.href+"\" " ;
	}
else if (type=="facebook")
	{
	location.href = "http://www.facebook.com/sharer.php?u="+document.location.href+"\" " ;
	}
else if (type=="delicious")
	{
	location.href = "http://www.del.icio.us/post?url="+document.location.href+"&amp;title="+document.title+"\" " ;
	}
else if (type=="digg")
	{
	location.href = "http://www.digg.com/submit?url="+document.location.href+"&amp;title="+document.title+"\" " ;
	}
else if (type=="reddit")
	{
	location.href = "http://www.reddit.com/submit?url="+document.location.href+"&amp;title="+document.title+"\" "; 
	}
else if (type=="stumbleupon")
	{
	location.href = "http://www.stumbleupon.com/submit?url="+document.location.href+"&amp;title="+document.title+"\" " ;
	}
else if (type=="kaboodle")
	{
	location.href = "http://www.kaboodle.com/za/additem?get&amp;url="+document.location.href+"&amp;title="+document.title+"\" " ;
	}
else if (type=="yahoo")
	{
	location.href = "http://myweb2.search.yahoo.com/myresults/bookmarklet?t="+document.title+"?u="+document.location.href+"\" " ;
	}
else if (type=="google")
	{
	location.href = "http://www.google.com/bookmarks/mark?op=add&amp;bkmk="+document.location.href+"&amp;title="+document.title+"\" " ;
	}	
}

function doZoomSwap(){
if(document.getElementById('theZoom').style.display=="block"){
$('#theZoom').fadeOut("normal", function(){$('#theZoom').css('display', 'none');});
$('body').css('overflow','scroll');
}
else{
$('body').css('overflow','hidden');
var windowHeight = $(window).height();
var windowWidth = $(window).width();
var documentHeight = $(document).height();
$('#theZoom').fadeIn("normal", function(){$('#theZoom').css('display', 'block');});
$('#theZoom').height($(document).width());
$('#theImage').height(windowHeight);
$('#zoomCentre').width(windowWidth-240);
$('#zoomCentre').height(windowHeight);
$('#theImage','#theZoom').width(windowWidth);
$('#zoomPrev,#zoomNext').css('marginTop',(windowHeight/2)+"px");
$('#scrollDown').css('marginTop',(windowHeight-(windowHeight/3))+"px");
$('#scrollDown').height(windowHeight/3);
$('#scrollUp').height(windowHeight/3);
}
}

function newXL(){
$("#theImage").scrollTop(0);
if((($('#fsa').css('display'))!='none')&&(($('#fsb').css('display'))=='none')){
$('#fsa').fadeOut("fast", function(){$('#fsa').css('display', 'none');$('#fsb').fadeIn("fast");});
}
else if((($('#fsb').css('display'))!='none')&&(($('#fsc').css('display'))=='none')){
$('#fsb').fadeOut("fast", function(){$('#fsb').css('display', 'none');$('#fsc').fadeIn("fast");});
}
else if((($('#fsc').css('display'))!='none')&&(($('#fsd').css('display'))=='none')){
$('#fsc').fadeOut("fast", function(){$('#fsc').css('display', 'none');$('#fsd').fadeIn("fast");});
}
else if((($('#fsd').css('display'))!='none')&&(($('#fse').css('display'))=='none')){
$('#fsd').fadeOut("fast", function(){$('#fsd').css('display', 'none');$('#fse').fadeIn("fast");});
}
else if((($('#fse').css('display'))!='none')&&(($('#fsa').css('display'))=='none')){
$('#fse').fadeOut("fast", function(){$('#fse').css('display', 'none');$('#fsa').fadeIn("fast");});
	/*$('#fse').css('display','none');
	$('#fsa').css('display','inline');*/
}
}

function prevXL(){

$("#theImage").scrollTop(0);
if((($('#fse').css('display'))!='none')&&(($('#fsd').css('display'))=='none')){
$('#fse').fadeOut("fast", function(){$('#fse').css('display', 'none');$('#fsd').fadeIn("fast");});
}

else if((($('#fsd').css('display'))!='none')&&(($('#fsc').css('display'))=='none')){
$('#fsd').fadeOut("fast", function(){$('#fsd').css('display', 'none');$('#fsc').fadeIn("fast");});
}
else if((($('#fsc').css('display'))!='none')&&(($('#fsb').css('display'))=='none')){
$('#fsc').fadeOut("fast", function(){$('#fsc').css('display', 'none');$('#fsb').fadeIn("fast");});
}
else if((($('#fsb').css('display'))!='none')&&(($('#fsa').css('display'))=='none')){
$('#fsb').fadeOut("fast", function(){$('#fsb').css('display', 'none');$('#fsa').fadeIn("fast");});
}
else if((($('#fsa').css('display'))!='none')&&(($('#fse').css('display'))=='none')){
$('#fsa').fadeOut("fast", function(){$('#fsa').css('display', 'none');$('#fse').fadeIn("fast");});
}
}



