/***** ScriptReaction Mutli Media Development - All Code Copyright ScriptReaction - www.scriptreaction.com *****/

/********** shell items **********/
var shell = {
	init: function (){
		shell.getBase();
		global.fixBg = 0;
		<!-- browser specific -->
		if(window.XMLHttpRequest){
			if(window.ActiveXObject){ // IE 7
				global.fixBg = 1;
				global.addEvent(window, 'resize', global.resize);
				shell.browser = "ie";
				shell.browserId = "ie7";
				document.write('<link href="assets/css/global_fixIE7.css" rel="stylesheet" type="text/css" />');
			}else{ // Opera, Safari, Firefox
				return;
			}
		}else{ //IE 6 and below
			//var x = '<link href="' + global.base + 'assets/css/global_fixIE6.css" rel="stylesheet" type="text/css" />';
			var x = '<style>';
				x+= '.png { behavior:url("' + global.base + 'assets/srx/filter_png.htc"); }';
				x+= '</style>';
			document.write(x);
		}
		<!-- all browsers -->
	},
	getBase: function (){
		global.base = '';
		if(typeof(globalBaseLevel) != 'undefined'){
			for(var i=1; i<=globalBaseLevel; i++){
				global.base += '../';	
			}
		}
	},
	directLanding: function (id){
		var goto = '';
		switch(id){
			case 'portfolio':
				goto = 'web_sites/index.htm';
				break;
			case 'services':
				goto = 'web_design.htm';
				break;
			case 'contact':
				goto = 'general_inquiries.php';
				break;
		}
		goto = (goto > '') ? goto : 'http://www.scriptreaction.com/';
		top.location.href = goto;		
	},
	srx: function (){
		return;	
	},
	blank: function (x){
		window.open(x);	
	},
	winClose: function (){
		top.location = 'javascript:shell.srx()';
		top.window.close();
	},
	getprt: function (){
		return;
	}
}

/********** shell init **********/
shell.init();