//checkPlatform();
var platform="";

function checkPlatform(){
 	//alert("test");
 	
 	if(isiPhone()){
		//alert('hello iPhone');
		window.location = "../iphone";
	}
	
	if(isiPad()){
    //return (navigator.platform.indexOf("iPad") != -1);
    	//alert('hello iPad');
    	platform = "iPad";
	}
	
	//alert($.browser.name);
	//browser-specific css!!!
	
	//if($.browser.mozilla){
	if($.browser.name == 'firefox'){
		//alert('mozilla');
			$("#menuHeader").html("GRAPHIC DESIGN &amp; ART DIRECTION<br/><span style='font-size:14px;'>.............................................</span><br/>");
			$("#menu").css( {"letter-spacing":"0px","line-height":"3px"} );
			$("#list").css( {"padding-left":"0px","padding-top":"6px","line-height":"10px"} );
			$("#loader").css( {"top":"67px"} );
			
		//$('#list').append('<link rel="stylesheet" href="mozBase.css" type="text/css" />');
		//}else if($.browser.msie){
	}else if($.browser.name == 'msie'){
			//alert('MSIE');
			offSetY = 7;
			heightOffSet = 1;
			widthOffSet = 1;
			browserName = 'IE';
			$('hr').css( { height: "3px" } );
			//menu fix
			$("#menuHeader").html("GRAPHIC DESIGN &amp; ART DIRECTION<br/><span style='font-size:14px;'>.............................................</span><br/>");
			$("#menu").css( {"letter-spacing":"0px","line-height":"3px"} );
			$("#list").css( {"padding-left":"0px","padding-top":"6px","line-height":"10px"} );
			$("#loader").css( {"top":"72px"} );
			//sidebar
			$("#sideTxt").css({"width":"200px"});
			$("#sideTxtFinal").css({"width":"200px"});
			$("#about").css({"width":"520px","padding-right":"100px"});
			$("#mainIndex").css({"width":"766px"});
			$("#line").css({"width":"740px","padding-left":"0px"});
			$("#sideTxtIndex").css({"padding-right":"24px"});
			//about
			//$("#about").css({"padding-left":"70px"});
			//project content
			$("#bodyTxt").css({"left":"227px"});
			
    }else if($.browser.name == 'chrome'){
    		$("#list").css( {"padding-left":"0px","padding-top":"3px","line-height":"10px"} );
			$("#menuHeader").html("GRAPHIC DESIGN &amp; ART DIRECTION<br/><span style='font-size:14px;'>.............................................</span><br/><br/>");
			//$('head').append('<link rel="stylesheet" href="/scripts/normalBase.css" type="text/css" />');
			$("#loader").css( {"top":"69px"} );
	}else{
	
		$("#menuHeader").html("GRAPHIC DESIGN &amp; ART DIRECTION<br/><span style='font-size:14px;'>.............................................</span><br/><br/>");

	}
 
 }

function isiPhone(){
    return (
        (navigator.platform.indexOf("iPhone") != -1) ||
        (navigator.platform.indexOf("iPod") != -1)
    );
}

function isiPad(){
    return (navigator.platform.indexOf("iPad") != -1);
}

