<!-- Copyright (c) 1bitHigh Ltd. 2008. All rights reserved.

var largerView = "";
var winToggle = false;

function openFullSizeChain(Pix,isDesc,aWidth,aHeight)
	{
	if (winToggle)
		{
		// Opera fix!
		if (!largerView.closed)
			{
			largerView.close();
			}
		}
	document.getElementById('nullIMG').src = Pix;
	var wStr = document.getElementById('nullIMG').width;
	var offsetW = wStr;
	wStr = wStr+20;
	wStr = "width="+wStr;
	var hStr = document.getElementById('nullIMG').height;
	var offsetH = hStr;
	hStr = hStr+20;
	hStr = "height="+hStr;
	var lStr = (screen.width-50-offsetW)/2;
	lStr = "left="+lStr;
	var tStr = (screen.availHeight-50-offsetH)/2;
	tStr = "top="+tStr;
	largerView = window.open('','largerView','menubar=0,toolbar=0,status=0,resizable=0,'+tStr+','+lStr+','+wStr+','+hStr);
	if (largerView.focus)
		{
		largerView.focus();
		}
	largerView.document.write('<HTML><HEAD><TITLE>Ragged Rose</TITLE></HEAD><BODY BGCOLOR="black">');
	largerView.document.write('<IMG SRC="'+Pix+'" WIDTH="'+aWidth+'" HEIGHT="'+aHeight+'"></BODY></HTML>');
	winToggle = true;
	return false;
	}
	
function c_openFullSizeChain(Pix,isDesc,aWidth,aHeight)
	{
	if (winToggle)
		{
		// Opera fix!
		if (!largerView.closed)
			{
			largerView.close();
			}
		}
	document.getElementById('nullIMG').src = Pix;
	var wStr =aWidth;
	var offsetW = wStr;
	wStr = wStr+20;
	wStr = "width="+wStr;
	var hStr = aHeight;
	var offsetH = hStr;
	hStr = hStr+20;
	hStr = "height="+hStr;
	var lStr = (screen.width-50-offsetW)/2;
	lStr = "left="+lStr;
	var tStr = (screen.availHeight-50-offsetH)/2;
	tStr = "top="+tStr;
	largerView = window.open('','largerView','menubar=0,toolbar=0,status=0,resizable=0,'+tStr+','+lStr+','+wStr+','+hStr);
	if (largerView.focus)
		{
		largerView.focus();
		}
	largerView.document.write('<HTML><HEAD><TITLE>Ragged Rose</TITLE></HEAD><BODY BGCOLOR="black">');
	largerView.document.write('<IMG SRC="'+Pix+'_w.jpg" WIDTH="'+aWidth+'" HEIGHT="'+aHeight+'"></BODY></HTML>');
	winToggle = true;
	return false;
	}
	
function buildSupport()
	{
	//var styleStr = '<STYLE>.thumb{cursor:pointer;border:solid #800080 2px}</STYLE>';
	var styleStr = '<STYLE>.thumb{cursor:pointer;border:solid 1px}</STYLE>';
	var divStr = "<DIV style='Position:Absolute;Top:-2000'><IMG ID='nullIMG'>&nbsp</DIV>";
	document.write(divStr);
	document.write(styleStr);
	}

buildSupport();

window.onunload=function()
	{
	if (winToggle && !largerView.closed)
		{
		largerView.close();
		}
	}

// Simple encrypted email.
function salesAddy()
	{
	var emailAddy=(String.fromCharCode((168/2)-1) + 'ales'
	+ String.fromCharCode(128/2)
	+ String.fromCharCode((166/2)-1) + 'agged'
	+ String.fromCharCode((166/2)-1) +	'ose'
	+ String.fromCharCode((94/2)-1) + 'co'
	+ String.fromCharCode((94/2)-1) + 'uk')
	document.write(' <a href="mailto:' + emailAddy + '">Sales</a>');
	}

// Simple encrypted phone.
function	 salesPhone()
	{
	var phone=('Tel: '+String.fromCharCode(49-1)+
	String.fromCharCode(53+2)+
	String.fromCharCode(43+5)+
	String.fromCharCode(56-7)+' '+
	String.fromCharCode(60-5)+
	String.fromCharCode(60-8)+
	String.fromCharCode(40+9)+
	String.fromCharCode(60-8)+
	String.fromCharCode(30+18)+
	String.fromCharCode(20+31)+
	String.fromCharCode(20+37))
	document.write(phone);
	}
	
function goback()
	{
	this.write=goback_write;
	}

function goback_write()
	{
	if (!window.history)
		return;
	if (window.history.length==0)
		return;
	// Still gets here on Firefox 1.5.x?
	if ((navigator.userAgent).indexOf("Firefox")!=-1 && window.history.length==1)
		return;
	document.write('<A HREF="javascript:history.back(-1)">[Back]<\/A>');
	}	
	
//!-->
