lgcServerName = '//services.littlegreencube.com';

lgcPrototypePath = lgcServerName+'/shared/prototype/20070717/prototype.js';
lgcScriptaculousPath = lgcServerName+'/shared/scriptaculous/20070717/scriptaculous.js';

lgcJosephinePath = lgcServerName+'/shared/josephine/20070716/';
	lgcJosephineScriptPath = lgcJosephinePath+'/josephine_obfuscated.js';
	lgcJosephineCSSPath = lgcJosephinePath+'/josephine.css';

lgcClientDir = lgcServerName+'/com.littlegreencube/02';
lgcWidth=621;
lgcHeight=383;

function lgcInitJosephine(){
	Josephine.path = lgcJosephinePath;
	Josephine.slideTime = .5;
	Josephine.fadeTime = .7;
	Josephine.zoomTime = .7;	
	Josephine.zoomFactor = 5;
	Josephine.conventions.thumb = 'small';
	Josephine.conventions.hoverThumb = 'small';
	Josephine.conventions.activeThumb = 'small';
	Josephine.conventions.full = 'small';	
	Josephine.conventions.zoom = 'large';
	Josephine.enableZoom = true;	
	Josephine.enableSpin = false;
	Josephine.enableGallery = true;
	Josephine.stageLayout = 'noArrows';
	Josephine.showInstructions = true;
}

function lgcLoadScripts(){
	scriptHTML = '';
	
	scriptHTML += '<link rel="stylesheet" type="text/css" href="'+lgcJosephineCSSPath+'" />';
	scriptHTML += '<style type="text/css">#stage{width:'+lgcWidth+'px; height:'+lgcHeight+'px;} .psOverlay{	background-image:url('+lgcClientDir+'/zoomr_overlay.png) !important;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+lgcClientDir+'/zoomr_overlay.png\');	* background-image:none;}</style>';
	scriptHTML += '<div id="stage"><img class="zoomable" src="'+lgcClientDir+'/small.jpg" /></div>';

	if(typeof $ != 'function'){
		scriptHTML += '<script src="'+lgcPrototypePath+'" type="text/javascript"></script>';
	}
	if(typeof Effect != 'function'){	
		scriptHTML += '<script src="'+lgcScriptaculousPath+'" type="text/javascript"></script>';
	}
	scriptHTML += '<script src="'+lgcJosephineScriptPath+'" type="text/javascript"></script>';
	scriptHTML += '<script for="window" event="onload" type="text/javascript">lgcInitJosephine();</script>'; 

	document.write(scriptHTML);
}

lgcLoadScripts();
