﻿var Website = new Object();
Website.baseUrl = "http://" + document.domain;
Website.swfFilesPath = Website.baseUrl + "/static/";
Website.jsRootPath = Website.baseUrl + "/static/js/";
Website.xmlPath = Website.baseUrl + "/static/photogallery/images.xml";
Website.FPExpressInstallSrc = Website.jsRootPath + "/swfobject/express-install.swf";

var delayedCalls = [];

window.onload = onWindowLoad;

function callLater(func)
{	
	delayedCalls.push(func);
}

function onWindowLoad()
{
	for(var i = 0; i < delayedCalls.length; i++)
	{
		var func = delayedCalls[i];
		func();
	}
}

function includeAllCSSFiles()
{
	var jsRootPath = '/static/js/';
	
	//all jquery stuff
	document.write('<scr'+'ipt type="text/javascript" src="' + jsRootPath + 'common.js" ></scr'+'ipt>'); 

	//all jquery ui core stuff
	document.write('<scr'+'ipt type="text/javascript" src="' + jsRootPath + 'fancybox-element.js" ></scr'+'ipt>'); 
	document.write('<scr'+'ipt type="text/javascript" src="' + jsRootPath + 'superfish.js" ></scr'+'ipt>'); 
	
	//all jquery ui components. Add all component js files as and when required in this section
	document.write('<scr'+'ipt type="text/javascript" src="' + jsRootPath + 'hoverIntent.js" ></scr'+'ipt>');
	document.write('<scr'+'ipt type="text/javascript" src="' + jsRootPath + 'ajaxupload.js" ></scr'+'ipt>');
	document.write('<scr'+'ipt type="text/javascript" src="/static/ckeditor/ckeditor.js" ></scr'+'ipt>');
	document.write('<scr'+'ipt type="text/javascript" src="/static/editors/tiny_mce/tiny_mce.js" ></scr'+'ipt>');
	document.write('<scr'+'ipt type="text/javascript" src="' + jsRootPath + 'GA1000.js" ></scr'+'ipt>');
	document.write('<scr'+'ipt type="text/javascript" src="' + jsRootPath + 'GA0010.js" ></scr'+'ipt>');
	document.write('<scr'+'ipt type="text/javascript" src="' + jsRootPath + 'gamabhanaLib.js" ></scr'+'ipt>');
	document.write('<scr'+'ipt type="text/javascript" src="' + jsRootPath + 'jquery/jquery.pstrength-min.1.2.js" ></scr'+'ipt>');
	document.write('<scr'+'ipt type="text/javascript" src="' + jsRootPath + 'swfobject.js" ></scr'+'ipt>');
	
	//nicedit editor
	//document.write('<scr'+'ipt type="text/javascript" src="' + jsRootPath + 'nicEdit.js" ></scr'+'ipt>'); 
	
	//everything related to this application/website
}

includeAllCSSFiles();
