var myimg=new array();
var aheight=new array();
$(function(){
for(i=0;i<$(".aheight").length;i++){
aheight[i]=$(".aheight").eq(i).css("height");
$(".aheight").eq(i).css({'height':parseint(aheight[i])*$(window).width()/1920});
};
});
$(window).resize(function(){
for(i=0;i<$(".aheight").length;i++){
$(".aheight").eq(i).css({'height':parseint(aheight[i])*$(window).width()/1920});
};
});
$(window).load(function(){
for(i=0;i<$(".zoomimg").length;i++){
myimg[i]=$(".zoomimg").eq(i).width();
$(".zoomimg").eq(i).css({'width':myimg[i]*$(window).width()/1920});
};
});
$(window).resize(function(){
for(i=0;i<$(".zoomimg").length;i++){
$(".zoomimg").eq(i).css({'width':myimg[i]*$(window).width()/1920});
};
});
function adaptwindow(id){
if($(".top_layer")!=null || typeof($(".top_layer"))!="undefined"){
id.css("min-height",$(window).height()-$(".top_layer").height());
}
else
{
id.css("min-height",$(window).height());
}
return id.height();
};
function adapthalfwindow(id){
if($(".top_layer")!=null || typeof($(".top_layer"))!="undefined"){
id.css("min-height",($(window).height()-$(".top_layer").height())/3);
}
else
{
id.css("min-height",$(window).height()/3);
};
return id.height()/3;
};
function verticalcenter(id,fn){
if(id.parent()){
if(id.find("img").length!=0){
isimgsload2(id.find("img"),function(){
id.css("padding-top",id.parent().height()/2-id.height()/2);
if(fn!=null||typeof(fn)!="undefined"){
fn();
};
});
}
else{
id.css("padding-top",id.parent().height()/2-id.height()/2);
if(fn!=null||typeof(fn)!="undefined"){
fn();
};
};
};
};
function objmove(id,property){
if(property){
var str="";
var targetstr=[];
for(var i=0;i<=id.length-1;i++){
targetstr[i]="";
for(var key in property){
targetstr[i]=targetstr[i]+key+":'"+id.eq(i).css(key)+"',";
id.eq(i).css(eval("'"+key+"'"),eval("'"+property[key]+"'"));
str=str+key+":'"+property[key]+"',";
};
str=str.slice(0,str.length-1);
targetstr[i]=targetstr[i].slice(0,targetstr[i].length-1);
};
};
if(id){
isimgsload2(id.find("img"),function(){
id.each(function(index,element){
setinterval(function(){
eval("$(element).animate({"+targetstr[index]+"},1000,'swing')");
},index*300);
});
});
};
};
$(document).ready(function(){
var i = 0;
var j = $(".alternate").length;
var h=$(".alternate").eq(0).height();
$(".alternate").fadeout(0).eq(0).fadein(0);
for(k=0;k');
}
$("#dot>img").eq(0).attr("src","visual/doton.png");
if(j>1){
$("#dot>img").mouseover(function(){
i = $("#dot>img").index(this);
$(".alternate").fadeout(0).eq(i).fadein(0);
$("#dot>img").attr("src","visual/dotoff.png").eq(i).attr("src","visual/doton.png");
});
setinterval(function(){
if(j > (i+1)){
$("#dot>img").eq(i).attr("src","visual/dotoff.png").next().attr("src","visual/doton.png");
$(".alternate").eq(i).fadeout(2000);
$(".alternate").eq(i).next().fadein(2000);
i++;
}else{
$("#dot>img").eq(i).attr("src","visual/dotoff.png").siblings().eq(0).attr("src","visual/doton.png");
$(".alternate").eq(i).fadeout(2000);
$(".alternate").eq(i).siblings().eq(0).fadein(2000);
i = 0;
}
},6000);
};
});
function elementcss(v1,v2){
return parseint($(v1).css(v2));
};
function getquerystring(name)
{
var reg = new regexp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if(r!=null)return unescape(r[2]); return null;
};
function getclassid(){
return getquerystring("classid")||getquerystring("classid")||getquerystring("classid")||getquerystring("classid");
};
function float_target(val){
$('body,html').stop().animate({scrolltop:val},0);
};
function bar(obj1,valve){
$(function(){
var pos1=$(obj1).offset().top;
$(document).scroll(function(){
var pos2=$(document).scrolltop()+valve;
if(pos1=imgslength){
callback();
return false;
};
;}
},50);
});
};
function maxheight(obj){
var themaxheight=0;
if (obj.length==1){
themaxheight=obj.eq(0).height();
}else if(obj.length>1){
themaxheight=obj.eq(0).height();
for(var i=1;i<=obj.length-1;i++){
if(themaxheight1){
themaxheight=obj.eq(0).height();
for(var i=1;i<=obj.length-1;i++){
if(themaxheight$(window).height()){
if(($(document).scrolltop()>($(document).height()-$(window).height()-100))||(parseint(window.innerwidth)<600)){
$("#pronav").css({'position':'static'});
$("#pronav>div").css({'display':'inline-block'});
}
else
{
$("#pronav").css({'position':'fixed','right':'0px','bottom':'120px'});
$("#pronav>div").css({'display':'block'});
};
};
});
$(document).scroll(function(){
if(($(document).scrolltop()>($(document).height()-$(window).height()-100))||(parseint(window.innerwidth)<600)){
$("#pronav").css({'position':'static'});
$("#pronav>div").css({'display':'inline-block'});
}
else
{
$("#pronav").css({'position':'fixed','right':'0px','bottom':'120px'});
$("#pronav>div").css({'display':'block'});
};
});
$(window).resize(function(){
if(($(document).scrolltop()>($(document).height()-$(window).height()-100))||(parseint(window.innerwidth)<600)){
$("#pronav").css({'position':'static'});
$("#pronav>div").css({'display':'inline-block'});
}
else
{
$("#pronav").css({'position':'fixed','right':'0px','bottom':'120px'});
$("#pronav>div").css({'display':'block'});
};
});
function common_pic_move(downpic,addmove,movepic,scrollbox){
$(function(){
$(addmove).addclass("move");
$(movepic).css({'margin-top':'50px','opacity':0});
isimgsload2($(downpic),function(){
if($(window).height()>$(scrollbox).offset().top+100){
$(movepic).each(function(index,element){
$(this).parent().css({'overflow':'hidden','height':$(this).parent().height()});
settimeout(function(){
$(element).animate({
margintop:'0px',
opacity:1
},1000,'swing',function(){$(this).parent().css({'overflow':'hidden','height':'auto'})})},index*150);
});
};
});
$(window).resize=$(document).scroll(function() {
isimgsload2($(downpic),function(){
var page4_top=$(scrollbox).offset().top;
var p=$(document).scrolltop();
if(parseint(p+$(window).height())>(page4_top+200)){
$(movepic).each(function(index,element){
$(this).parent().css({'overflow':'hidden','height':$(this).parent().height()});
settimeout(function(){
$(element).animate({
margintop:'0px',
opacity:1
},1000,'swing',function(){$(this).parent().css({'overflow':'hidden','height':'auto'})})},index*300);
});
};
});
});
});
};
function common_pic_move2(downpic,addmove,movepic,scrollbox){
$(function(){
$(addmove).addclass("move");
$(movepic).css({'margin-top':'50px','opacity':0});
isimgsload2($(downpic),function(){
if($(window).height()>$(scrollbox).offset().top+100){
$(movepic).each(function(index,element){
$(this).parent().css({});
settimeout(function(){
$(element).animate({
margintop:'0px',
opacity:1
},1000,'swing',function(){$(this).parent().css({})})},index*150);
});
};
});
$(document).scroll(function() {
isimgsload2($(downpic),function(){
var page4_top=$(scrollbox).offset().top;
var p=$(document).scrolltop();
if(parseint(p+$(window).height())>(page4_top+200)){
$(movepic).each(function(index,element){
$(this).parent().css({});
settimeout(function(){
$(element).animate({
margintop:'0px',
opacity:1
},1000,'swing',function(){$(this).parent().css({})})},index*300);
});
};
});
});
});
};