
var Display=new Array();Display['width']=800;Display['height']=600;var Timer=new Array();Timer['counter']=11*20;Timer['development']=false;$j(document).ready(function(){GetBrowserResolution();var count=0;var images=['/themes/next176/next176.png','/themes/next176/softwaredevelopment.png','/themes/next176/logo1.png','/themes/next176/logo2.png'];$j.each(images,function(e){$j(new Image()).load(function(){count++;if(count==4){SceneStart();$j('.menu_hover').imghover();}}).attr('src',this);});});window.onresize=MyResize;function MyResize(){GetBrowserResolution();$j('#ETopL1').css('width',(Display['width']+'px'));$j('#ETopL2').css('width',(Display['width']+'px'));if(Display['width']>1920)$j('body').css('background','url(/themes/next176/back2200.jpg) #000000 top left repeat-x');if(Display['width']>1280)$j('body').css('background','url(/themes/next176/back1920.jpg) #000000 top left repeat-x');$j('#ETopNext176').css('left',((Display['contentx1']+56)+'px'));$j('#ETopDevelopment').css('left',((Display['contentx1']+56)+'px'));$j('#ETopLogo1').css('left',((Display['contentx1']-64)+'px'));$j('#ETopLogo2').css('left',((Display['contentx1']-64)+'px'));$j('#ETopMenu').css('left',((Display['contentx1'])+'px'));$j('#EMiddle').css('left',((Display['contentx1'])+'px'));$j('#EBottom').css('left',((Display['contentx1'])+'px'));}
$j('*').bind('click',function(){});function SceneStart(){if(Display['width']<=1280){$j('body').css('background','url(/themes/next176/back1280.jpg) #000000 top left repeat-x');}else
if(Display['width']>1920){$j('body').css('background','url(/themes/next176/back2200.jpg) #000000 top left repeat-x');}else{$j('body').css('background','url(/themes/next176/back1920.jpg) #000000 top left repeat-x');}
jQuery('<div>',{id:'ETopL1',style:'display: none; position: absolute; left: 0px; top: 0px; height: 82px; width: '+parseInt(Display['width'])+'px; background: black; opacity: 0.8; filter: alpha(opacity=80);'}).appendTo('body');jQuery('<div>',{id:'ETopL2',style:'display: none; position: absolute; left: 0px; top: 82px; height: 4px; width: '+parseInt(Display['width'])+'px; background: white; opacity: 0.14; filter: alpha(opacity=14);'}).appendTo('body');jQuery('<img/>',{id:'ETopNext176',src:'/themes/next176/next176.png',style:'display: display; position: absolute; left: '+(Display['contentx1']+56)+'px; top: 36px; height: 44px; width: 145px;'}).appendTo('body');jQuery('<img/>',{id:'ETopDevelopment',src:'/themes/next176/softwaredevelopment.png',style:'display: display; position: absolute; left: '+(Display['contentx1']+56)+'px; top: 80px; height: 17px; width: 145px;'}).appendTo('body');jQuery('<img/>',{id:'ETopLogo1',src:'/themes/next176/logo1.png',style:'display: none; position: absolute; left: '+(Display['contentx1']-64)+'px; top: 0px; height: 130px; width: 144px;'}).appendTo('body');jQuery('<img/>',{id:'ETopLogo2',src:'/themes/next176/logo2.png',style:'display: none; position: absolute; left: '+(Display['contentx1']-64)+'px; top: 0px; height: 130px; width: 144px;'}).appendTo('body');jQuery('<div>',{id:'ETopMenu',style:'z-index: 20000; display: block; position: absolute; left: '+Display['contentx1']+'px; top: 50px; width: 912px; text-align: right;',html:" \
   <img src='/themes/next176/sep.png' alt='' style='opacity: 0.6; filter: alpha(opacity=60);' /> \
   <a href='/p/content/view/57' onclick=\"Ajax('/p/content/view/57', {TargetId: 'content', OnSuccess: ProcessContent, NoProgress:true}); return false;\"><img class='menu_hover' src='/themes/next176/m37.png' border='0' alt='' /></a> \
   <img src='/themes/next176/sep.png' alt='' style='opacity: 0.6; filter: alpha(opacity=60);' /> \
   <a href='/p/content/view/58' onclick=\"Ajax('/p/content/view/58', {TargetId: 'content', OnSuccess: ProcessContent, NoProgress:true}); return false;\"><img class='menu_hover' src='/themes/next176/m38.png' border='0' alt='' /></a> \
   <img src='/themes/next176/sep.png' alt='' style='opacity: 0.6; filter: alpha(opacity=60);' /> \
   <a href='/p/content/view/56' onclick=\"Ajax('/p/content/view/56', {TargetId: 'content', OnSuccess: ProcessContent, NoProgress:true}); return false;\"><img class='menu_hover' src='/themes/next176/m36.png' border='0' alt='' /></a> \
   <img src='/themes/next176/sep.png' alt='' style='opacity: 0.6; filter: alpha(opacity=60);' /> \
   <a href='/p/content/view/61' onclick=\"Ajax('/p/content/view/61', {TargetId: 'content', OnSuccess: ProcessContent, NoProgress:true}); return false;\"><img class='menu_hover' src='/themes/next176/m41.png' border='0' alt='' /></a> \
   <img src='/themes/next176/sep.png' alt='' style='opacity: 0.6; filter: alpha(opacity=60);' /> \
   "}).appendTo('body');jQuery('<div>',{id:'EMiddle',html:"<div id='EMiddleFader'></div>",style:'display: block; position: relative; left: '+Display['contentx1']+'px; top: 130px; min-height: 400px; width: 900px; background: url(/themes/next176/black90.png); -moz-border-radius: 32px; -webkit-border-radius: 32px; border-radius: 32px; box-shadow: 0px 0px 8px #aaa;'}).appendTo('body');;jQuery('<div>',{id:'EBottom',style:'text-align: center; display: display; position: relative; left: '+Display['contentx1']+'px; top: 130px; width: 900px; padding-top: 16px; padding-bottom: 16px; color: gray; font-size: 6pt;',html:"&copy;2011 NEXT176, All right reserved "}).appendTo('body');;$j('#ETopL1').show('slow',function(){$j('#ETopL2').fadeIn("show");});$j('#ETopLogo1').fadeIn("show");$j('#ETopLogo2').fadeIn("show");$j('#ETopLogo2').fadeTo("3000",'0.6').fadeTo("3000",'1.0');$j('.menu_hover').click(function(e){$j(this).clone().css("position","absolute").css("left",parseInt($j(this).offset().left)+"px").css("top","50px").appendTo("body").delay(3000).hide("explode",'',2000,function(){$j(this).remove()});});ProcessContent();setInterval(function(){Timer['counter']++;if((Timer['counter']%(3*20))==0)
$j('#ETopLogo2').fadeTo("3000","1.0").fadeTo("3000",'0.6');if((Timer['counter']%(6*20))==0)
$j('#ETopNext176').fadeTo(3000,'0.4');if((Timer['counter']%(12*20))==0)
$j('#ETopNext176').fadeTo(5000,'1.0');},50);}
function GetBrowserResolution(){var theHeight=0;if(window.innerHeight){theHeight=window.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){theHeight=document.documentElement.clientHeight;}else{if(document.body){theHeight=document.body.clientHeight;}}}
Display['height']=theHeight;var theWidth=0;if(window.innerWidth){theWidth=window.innerWidth;}else{if(document.documentElement&&document.documentElement.clientWidth){theWidth=document.documentElement.clientWidth;}else{if(document.body){theWidth=document.body.clientWidth;}}}
Display['width']=theWidth;Display['contentx1']=parseInt((theWidth-900)/2);Display['contentx2']=parseInt((theWidth-900)/2)+900;}
function ProcessContent(){Text=$j('#content').html();$j('#EMiddleFader').fadeOut("fast",function(){$j('#content').html('');$j('#EMiddleFader').html(Text);$j('#EMiddleFader').fadeIn("fast");});}
