var window_width;var window_height;var image_width=1900;var image_height=1200;var margin_top;var margin_left;var act_image_height=0;var act_image_width=0;var container_positon_x;var container_position_y;var background_slideshow_array=new Array();var background_slideshow_shuffle_array=new Array();var background_slideshow_next_image;var background_slideshow_last_image="";var slideshow_act_image=0;var slideshow_position_x=0;var swipe_x_start;var swipe_x_end;var image_space;var image_space_first=0;var image_space_last=0;var images_array=new Array();var container_width=0;var active_cat="";var viewport_width=978;var viewport_height=650;var switch_time=5000;var window_state=false;var fullscreen_state=false;var floater_state=1;jQuery(document).bind("contextmenu",function(a){a.preventDefault()});jQuery(document).keydown(function(a){if(jQuery("#latest_slideshow_container").length>0||jQuery("#portfolio_slideshow_container").length>0){if(a.which==jQuery.ui.keyCode.LEFT){a.preventDefault();prev_image(active_cat)}if(a.which==jQuery.ui.keyCode.RIGHT){a.preventDefault();next_image(active_cat)}}if(a.which==70&&check_fullscreen_support()){toggle_fullscreen()}});if(jQuery.browser.webkit){jQuery(document).bind("webkitfullscreenchange",toggle_fullscreen_event)}else{if(jQuery.browser.mozilla){jQuery(document).bind("mozfullscreenchange",toggle_fullscreen_event)}}jQuery(window).resize(function(){window_width=jQuery(window).width();window_height=jQuery(window).height();document_width=jQuery(document).width();document_height=jQuery(document).height();if(jQuery("#background_mask_div").length>0){jQuery("#background_mask_div").css({width:document_width+15,height:document_height+15})}if(jQuery("#background_loading_div").length>0){jQuery("#background_loading_div").css({width:document_width+15,height:document_height+15})}if(jQuery("#container_div").length>0){container_position_x=(window_width-viewport_width)/2;container_position_y=(window_height-viewport_height)/2;if(container_position_x<0){container_position_x=0}if(container_position_y<0){container_position_y=0}jQuery("#container_div").css({top:container_position_y,left:container_position_x})}act_image_height=jQuery(".background_img").height();act_image_width=jQuery(".background_img").width();if(image_width<image_height){}else{new_image_width=window_width;new_image_height=new_image_width*(image_height/image_width);if(new_image_height<window_height){remainder_height=window_height-new_image_height;new_image_width=new_image_width+Math.round(remainder_height*(image_width/image_height))+15;new_image_height=Math.round(new_image_width*(image_height/image_width))}}margin_top=(new_image_height-window_height)/-2;margin_left=(new_image_width-window_width)/-2;jQuery(".background_img").css({width:new_image_width});jQuery(".background_img").css({height:new_image_height});jQuery(".background_img").css({"margin-top":margin_top});jQuery(".background_img").css({"margin-left":margin_left})});function init(){jQuery(document).ready(function(){window_width=jQuery(window).width();window_height=jQuery(window).height();document_width=jQuery(document).width();document_height=jQuery(document).height();jQuery("body").append('<div id="background_loading_div"></div>');jQuery("#background_loading_div").css({width:document_width+15,height:document_height+15});jQuery.ajax({type:"get",url:"/xml/slideshow.xml",dataType:"xml",cache:false,error:function(c,b,a){console.log(c.responseText)},beforeSend:function(){},complete:function(){},success:function(a){jQuery(a).find("background_slideshow_image_set").each(function(){switch_time=parseInt(jQuery(this).attr("time"));jQuery(this).find("source").each(function(){var b=jQuery(this).text();background_slideshow_array.push(b)})});background_slideshow()}});show_floater();jQuery(document).bind("mousemove",function(a){if(jQuery("#floater_img").css("display")=="none"){jQuery("#floater_img").fadeIn("slow")}jQuery("#floater_img").css({top:a.pageY+10,left:a.pageX+10})});jQuery(document).bind("click",function(b){window_state=true;jQuery(document).stopTime();window_width=jQuery(window).width();window_height=jQuery(window).height();document_width=jQuery(document).width();document_height=jQuery(document).height();jQuery(document).unbind("click");jQuery(document).unbind("mousemove");jQuery("#floater_img").remove();jQuery("#logo_div").hide();jQuery("body").append('<div id="background_mask_div"></div>');jQuery("#background_mask_div").css({width:window_width,height:window_height});jQuery("#background_mask_div").css({opacity:0.85});jQuery("#background_mask_div").fadeIn("slow");container_position_x=(window_width-viewport_width)/2;container_position_y=(window_height-viewport_height)/2;if(document_width!=0){if(container_position_x<0){container_position_x=0}else{container_position_x=(document_width-viewport_width)/2}}else{container_position_x=0}if(document_height!=0){if(container_position_y<0){container_position_y=0}else{container_position_y=(document_height-viewport_height)/2}}else{container_position_y=0}var a;a='<div id="container_div" style="position:absolute; z-index:999; top:'+container_position_y+"px; left: "+container_position_x+'px;">';a+='<div id="head_div"><a href="https://www.facebook.com/pages/COREDESIGN-NICO-GEES/106163442804628" target="_blank" title="COREDESIGN bei Facebook" id="facebook_a"><img src="/images/site/fb_button.png" width="14" height="14" alt="Facebook" /></a></div>';a+='<div id="content_div"></div>';a+='<div id="foot_div">';a+='<div id="navi_div">';a+='<ul id="navi_ul">';a+='<li id="navi_latest_li"><a href="javascript:void(0);" target="_self" title="latest" onclick="load_images_content(\'latest\');">new stuff</a></li>';a+='<li class="spacer_li">|</li>';a+='<li id="navi_portfolio_li"><a href="javascript:void(0);" target="_self" title="portfolio" onclick="load_images_content(\'portfolio\');">portfolio</a></li>';a+='<li class="spacer_li">|</li>';a+='<li id="navi_contact_li"><a href="javascript:void(0);" target="_self" title="contact" onclick="load_contact();">contact</a></li>';if(check_fullscreen_support()){a+='<li id="navi_fullscreen_window_li"><a href="javascript:void(0);" target="_self" title="fullscreen" onclick="toggle_fullscreen();">fullscreen</a></li>';a+='<li class="spacer_li">|</li>';a+='<li id="navi_close_window_li" class="close_with_fullscreen"><a href="javascript:void(0);" target="_self" title="close window" onclick="close_window();">close this window</a></li>'}else{a+='<li id="navi_close_window_li" class="close_without_fullscreen"><a href="javascript:void(0);" target="_self" title="close window" onclick="close_window();">close this window</a></li>'}a+="</ul>";a+="</div>";a+="</div>";a+="</div>";jQuery("body").append(a);jQuery("#container_div").show("size","slow",load_images_content("latest"))})})}function background_slideshow(){jQuery(document).stopTime();window_width=jQuery(window).width();window_height=jQuery(window).height();document_width=jQuery(document).width();document_height=jQuery(document).height();if(background_slideshow_array.length==0){jQuery(document).stopTime();if(background_slideshow_shuffle_array.length>1){background_slideshow_array=new Array();background_slideshow_array=background_slideshow_shuffle_array.concat();background_slideshow_shuffle_array=new Array();if(jQuery("#background_loading_div").length>0){jQuery("#background_loading_div").fadeOut("fast",function(){jQuery("#background_loading_div").remove()})}background_slideshow()}}else{var a=Math.floor(Math.random()*background_slideshow_array.length);background_slideshow_next_image=background_slideshow_array[a];if(background_slideshow_next_image==background_slideshow_last_image){jQuery(document).stopTime();if(jQuery("#background_loading_div").length>0){jQuery("#background_loading_div").fadeOut("fast",function(){jQuery("#background_loading_div").remove()})}background_slideshow()}else{if(jQuery("#act_img").length>0){jQuery("#act_img").attr("id","last_img")}var c=new Image();var d;var b;jQuery(c).load(function(){jQuery(this).hide();jQuery("#background_slide_div").append(this);if(image_width<image_height){}else{d=window_width;b=d*(image_height/image_width);if(b<window_height){remainder_height=window_height-b;d=d+Math.round(remainder_height*(image_width/image_height))+15;b=Math.round(d*(image_height/image_width))}margin_top=(b-window_height)/-2;margin_left=(d-window_width)/-2;jQuery(".background_img").css({width:d});jQuery(".background_img").css({height:b});jQuery(".background_img").css({"margin-top":margin_top});jQuery(".background_img").css({"margin-left":margin_left})}if(jQuery("#background_loading_div").length>0){jQuery("#background_loading_div").fadeOut("fast",function(){jQuery("#background_loading_div").remove()})}jQuery(this).fadeIn(2500,function(){if(jQuery("#last_img").length>0){jQuery("#last_img").remove()}});background_slideshow_shuffle_array.push(background_slideshow_array[a]);background_slideshow_last_image=background_slideshow_array[a];background_slideshow_array.splice(a,1);switch_time.toString();if(jQuery("#container_div").length>0){jQuery(document).stopTime()}else{jQuery(document).everyTime(switch_time,"background_slideshow_timer",background_slideshow)}}).attr("src",background_slideshow_array[a]).attr("id","act_img").addClass("background_img");if(jQuery.browser.msie){jQuery(".background_img").css({width:d});jQuery(".background_img").css({height:b});jQuery(".background_img").css({"margin-top":margin_top});jQuery(".background_img").css({"margin-left":margin_left})}}}}function is_fullscreen(){if(jQuery.browser.webkit){if(document.webkitIsFullScreen){return true}else{return false}}else{if(jQuery.browser.mozilla){if(document.mozFullScreen){return true}else{return false}}else{return false}}}function check_fullscreen_support(){if(jQuery.browser.webkit){if(document.webkitCancelFullScreen){return true}else{return false}}else{if(jQuery.browser.mozilla){if(document.mozCancelFullScreen){return true}else{return false}}else{return false}}}function show_floater(){if(check_fullscreen_support()){if(fullscreen_state==true){if(window_state==true){floater_state=0;floater_output=""}else{floater_state=1;floater_output='<img src="/images/site/floater_01.png" width="97" height="24" id="floater_img" alt="click for navi" />'}}else{if(window_state==true){floater_state=0;floater_output=""}else{floater_state=2;floater_output='<img src="/images/site/floater_02.png" width="210" height="24" id="floater_img" alt="click for navi | F for fullscreen" />'}}}else{floater_state=1;floater_output='<img src="/images/site/floater_01.png" width="97" height="24" id="floater_img" alt="click for navi" />'}if(floater_output!=""){if(jQuery("#floater_img").length>0){jQuery("#floater_img").remove();jQuery("body").append(floater_output)}else{jQuery("body").append(floater_output)}}else{jQuery("#floater_img").remove()}}function toggle_fullscreen_event(){if(fullscreen_state==true){fullscreen_state=false}else{fullscreen_state=true}show_floater()}function toggle_fullscreen(){if(jQuery.browser.webkit){if(!document.webkitIsFullScreen&&fullscreen_state==false){window_width=jQuery(window).width();window_height=jQuery(window).height();x_pos=(window_width/2)-210;y_pos=(window_height/4);if(jQuery("#fullscreen_notice_div").length<1){jQuery("body").append('<div id="fullscreen_notice_div" style="top:'+y_pos+"px; left:"+x_pos+'px;">Press ESC to leave Fullscreen.</div>');jQuery("#fullscreen_notice_div").animate({opacity:1},2500).fadeOut(1200,function(){jQuery(this).remove()})}document.getElementById("background_slide_div").webkitRequestFullScreen("ALLOW_KEYBOARD_INPUT");show_floater()}else{document.webkitCancelFullScreen()}}else{if(jQuery.browser.mozilla){if(!document.mozsFullScreen&&fullscreen_state==false){window_width=jQuery(window).width();window_height=jQuery(window).height();x_pos=(window_width/2)-210;y_pos=(window_height/4);if(jQuery("#fullscreen_notice_div").length<1){jQuery("body").append('<div id="fullscreen_notice_div" style="top:'+y_pos+"px; left:"+x_pos+'px;">Press ESC to leave Fullscreen.</div>');jQuery("#fullscreen_notice_div").animate({opacity:1},2500).fadeOut(1200,function(){jQuery(this).remove()})}document.body.mozRequestFullScreen()}else{document.mozCancelFullScreen()}}else{return false}}}function close_window(){window_state=false;jQuery("#background_mask_div").remove();jQuery("#container_div").remove();background_slideshow();show_floater();jQuery(document).bind("mousemove",function(a){if(jQuery("#floater_img").css("display")=="none"){jQuery("#floater_img").fadeIn("slow")}jQuery("#floater_img").css({top:a.pageY+10,left:a.pageX+10})});jQuery("#logo_div").show();jQuery("#background_slide_div").bind("click",function(b){window_state=true;jQuery(document).stopTime();window_width=jQuery(window).width();window_height=jQuery(window).height();document_width=jQuery(document).width();document_height=jQuery(document).height();jQuery("#background_slide_div").unbind("click");jQuery(document).unbind("mousemove");jQuery("#floater_img").remove();jQuery("#logo_div").hide();jQuery("body").append('<div id="background_mask_div"></div>');jQuery("#background_mask_div").css({width:window_width,height:window_height});jQuery("#background_mask_div").css({opacity:0.85});jQuery("#background_mask_div").fadeIn("slow");container_position_x=(window_width-viewport_width)/2;container_position_y=(window_height-viewport_height)/2;if(document_width!=0){if(container_position_x<0){container_position_x=0}else{container_position_x=(document_width-viewport_width)/2}}else{container_position_x=0}if(document_height!=0){if(container_position_y<0){container_position_y=0}else{container_position_y=(document_height-viewport_height)/2}}else{container_position_y=0}var a;a='<div id="container_div" style="position:absolute; z-index:999; top:'+container_position_y+"px; left: "+container_position_x+'px;">';a+='<div id="head_div"><a href="https://www.facebook.com/pages/COREDESIGN-NICO-GEES/106163442804628" target="_blank" title="COREDESIGN bei Facebook" id="facebook_a"><img src="/images/site/fb_button.png" width="14" height="14" alt="Facebook" /></a></div>';a+='<div id="content_div"></div>';a+='<div id="foot_div">';a+='<div id="navi_div">';a+='<ul id="navi_ul">';a+='<li id="navi_latest_li"><a href="javascript:void(0);" target="_self" title="latest" onclick="load_images_content(\'latest\');">new stuff</a></li>';a+='<li class="spacer_li">|</li>';a+='<li id="navi_portfolio_li"><a href="javascript:void(0);" target="_self" title="portfolio" onclick="load_images_content(\'portfolio\');">portfolio</a></li>';a+='<li class="spacer_li">|</li>';a+='<li id="navi_contact_li"><a href="javascript:void(0);" target="_self" title="contact" onclick="load_contact();">contact</a></li>';if(check_fullscreen_support()){a+='<li id="navi_fullscreen_window_li"><a href="javascript:void(0);" target="_self" title="fullscreen" onclick="toggle_fullscreen();">fullscreen</a></li>';a+='<li class="spacer_li">|</li>';a+='<li id="navi_close_window_li" class="close_with_fullscreen"><a href="javascript:void(0);" target="_self" title="close window" onclick="close_window();">close this window</a></li>'}else{a+='<li id="navi_close_window_li" class="close_without_fullscreen"><a href="javascript:void(0);" target="_self" title="close window" onclick="close_window();">close this window</a></li>'}a+="</ul>";a+="</div>";a+="</div>";a+="</div>";jQuery("body").append(a);jQuery("#container_div").show("size","slow",load_images_content("latest"))})}function load_image(e,b){var c=new Image();var d=new Date;var a=(Math.random()*d.getTime())*d.getTime();var f=images_array[e-1][2]+"?="+a;jQuery("#slideshow_image_"+e).addClass("loading");jQuery("#slideshow_image_"+e).removeClass("not_loaded");jQuery(c).load(function(){if(b==active_cat){if(jQuery("#slideshow_image_"+e+"> div:first-child").hasClass("error_loading")==true){jQuery("#slideshow_image_"+e+"> div:first-child").remove()}jQuery(this).hide();jQuery("#slideshow_image_"+e).append(this);jQuery(this).fadeIn();jQuery("#slideshow_image_"+e).removeClass("loading");jQuery("#slideshow_image_"+e).addClass("loaded")}}).error(function(){jQuery("#slideshow_image_"+e).removeClass("loading");jQuery("#slideshow_image_"+e).addClass("error");if(jQuery("#slideshow_image_"+e+" > div:first-child").hasClass("error_loading")==false){image_width=jQuery("#slideshow_image_"+e).width()-2;image_height=jQuery("#slideshow_image_"+e).height()-2;jQuery("#slideshow_image_"+e).append('<div class="error_loading" style="width:'+image_width+"px; height:"+image_height+'px;"></div>')}}).attr("src",f)}function preload_previous_images(g,f,e,b){var a=g;while(a<f){if(e<=images_array.length){var d=jQuery("#slideshow_image_"+(e)).attr("class");var h=d.split(" ");var c;if(h.length>1){c=h[1]}else{c="not_loaded"}if(c=="not_loaded"){load_image(e,b)}if(e!=1){a-=image_space-images_array[e-1][0];e--}else{break}}else{break}}}function preload_next_images(g,f,e,b){var a=g;while(a>f){if(e<=images_array.length){var d=jQuery("#slideshow_image_"+(e)).attr("class");var h=d.split(" ");var c;if(h.length>1){c=h[1]}else{c="not_loaded"}if(c=="not_loaded"){load_image(e,b)}if(e!=images_array.length){a+=image_space-images_array[e-1][0];e++}else{break}}else{break}}}function prev_image(a){if(slideshow_act_image==1){slideshow_position_x-=container_width-image_space_last-images_array[images_array.length-1][0]+image_space_first-(image_space/2);var c=images_array.length;var b=slideshow_position_x+((viewport_width-images_array[slideshow_act_image-1][0])/2)-(image_space/2)+viewport_width;preload_previous_images(slideshow_position_x,b,c,a);jQuery("#slideshow_image_"+(slideshow_act_image)).animate({opacity:0.6},500);jQuery("#slideshow_image_"+(images_array.length)).animate({opacity:1},500);jQuery("#"+a+"_slideshow_container").animate({left:slideshow_position_x},500);slideshow_act_image=images_array.length}else{slideshow_position_x+=((viewport_width-images_array[slideshow_act_image-1][0])/2)+images_array[slideshow_act_image-1][0]+image_space-((viewport_width-images_array[slideshow_act_image-2][0])/2);var c=slideshow_act_image-1;var b=slideshow_position_x+((viewport_width-images_array[slideshow_act_image-1][0])/2)-(image_space/2)+(viewport_width*3);preload_previous_images(slideshow_position_x,b,c,a);jQuery("#slideshow_image_"+(slideshow_act_image)).animate({opacity:0.6},500);jQuery("#slideshow_image_"+(slideshow_act_image-1)).animate({opacity:1},500);jQuery("#"+a+"_slideshow_container").animate({left:slideshow_position_x},500);slideshow_act_image--}}function next_image(a){if(slideshow_act_image==images_array.length){slideshow_position_x=0;jQuery("#slideshow_image_"+(slideshow_act_image)).animate({opacity:0.6},500);jQuery("#slideshow_image_1").animate({opacity:1},500);jQuery("#"+a+"_slideshow_container").animate({left:slideshow_position_x},500);slideshow_act_image=1}else{if(slideshow_act_image==1){slideshow_position_x-=images_array[slideshow_act_image-1][0]+image_space_first+(3*(image_space/2))-(viewport_width-images_array[slideshow_act_image][0])/2}else{slideshow_position_x-=((viewport_width-images_array[slideshow_act_image-1][0])/2)+images_array[slideshow_act_image-1][0]+image_space-((viewport_width-images_array[slideshow_act_image][0])/2)}var c=slideshow_act_image;var b=slideshow_position_x-((viewport_width-images_array[slideshow_act_image][0])/2)-(image_space/2)-(viewport_width*3);preload_next_images(slideshow_position_x,b,c,a);jQuery("#slideshow_image_"+(slideshow_act_image)).animate({opacity:0.6},500);jQuery("#slideshow_image_"+(slideshow_act_image+1)).animate({opacity:1},500);jQuery("#"+a+"_slideshow_container").animate({left:slideshow_position_x},500);slideshow_act_image++}}function load_images_content(a){active_cat=a;if(jQuery("#status_box").length>0){jQuery("#status_box").remove()}slideshow_act_image=0;slideshow_position_x=0;jQuery("#content_div").html("");jQuery("#navi_ul").attr("class","");jQuery("#navi_ul").addClass(a+"_active");jQuery.ajax({type:"get",url:"/xml/"+a+".xml",dataType:"xml",cache:false,error:function(d,c,b){console.log(d.responseText)},beforeSend:function(){jQuery("#content_div").append('<div id="content_loading_div"></div>')},complete:function(){},success:function(k){var h=parseInt(k.getElementsByTagName(a+"_image_set")[0].attributes[0].nodeValue);image_space=Math.ceil(parseInt(k.getElementsByTagName(a+"_image_set")[0].attributes[1].nodeValue)/2)*2;container_width=0;images_array=new Array();var o;var p="";for(i=0;i<h;i++){var q=parseInt(k.getElementsByTagName("width")[i].firstChild.nodeValue);var d=parseInt(k.getElementsByTagName("height")[i].firstChild.nodeValue);var m=k.getElementsByTagName("source")[i].firstChild.nodeValue;container_width+=q+image_space;image_array=[q,d,m];images_array.push(image_array);image_padding_top=((viewport_height-100)-d)/2;image_padding_left=image_space/2;image_padding_right=image_space/2;if(i==0){p+='<div id="slideshow_image_'+(i+1)+'" class="slideshow_image_first_div not_loaded" style="margin:0px; padding-top:'+image_padding_top+"px; padding-left:"+image_padding_left+"px; padding-right:"+image_padding_right+"px; width:"+q+"px; height:"+d+'px;"></div>'}else{p+='<div id="slideshow_image_'+(i+1)+'" class="slideshow_image_div not_loaded" style="margin:0px; padding-top:'+image_padding_top+"px; padding-left:"+image_padding_left+"px; padding-right:"+image_padding_right+"px; width:"+q+"px; height:"+d+'px;"></div>'}}if(images_array.length>1){image_space_first=((viewport_width-images_array[0][0])/2)-(image_space/2);image_space_last=((viewport_width-images_array[(images_array.length-1)][0])/2)}else{image_space_first=((viewport_width-images_array[0][0])/2)-(image_space/2);image_space_last=((viewport_width-images_array[0][0])/2)-(image_space/2)}if(images_array.length>1){o='<div id="'+a+'_div">';o+='<div id="slideshow_prev_div"></div>';o+='<div id="slideshow_next_div"></div>';o+='<div id="'+a+'_slideshow_container" style="padding-left:'+image_space_first+"px; padding-right:"+image_space_last+"px; width:"+container_width+'px;">';o+=p;o+="</div>";o+="</div>";jQuery("#content_div").append(o);jQuery("#slideshow_prev_div").bind("mousemove",function(r){jQuery("#slideshow_prev_div").css({"background-image":"url(/images/site/prev_button.png)","background-repeat":"no-repeat"})});jQuery("#slideshow_prev_div").bind("mouseout",function(r){jQuery("#slideshow_prev_div").css({"background-image":"url(/images/site/spacer.gif)","background-repeat":"repeat"})});jQuery("#slideshow_prev_div").bind("click",function(r){prev_image(a)});jQuery("#slideshow_next_div").bind("mousemove",function(r){jQuery("#slideshow_next_div").css({"background-image":"url(/images/site/next_button.png)","background-repeat":"no-repeat"})});jQuery("#slideshow_next_div").bind("mouseout",function(r){jQuery("#slideshow_next_div").css({"background-image":"url(/images/site/spacer.gif)","background-repeat":"repeat"})});jQuery("#slideshow_next_div").bind("click",function(r){next_image(a)})}else{o='<div id="'+a+'_div">';o+='<div id="'+a+'_slideshow_container" style="padding-left:'+image_space_first+"px; padding-right:"+image_space_last+"px; width:"+container_width+'px;">';o+=p;o+="</div>";o+="</div>";jQuery("#content_div").append(o)}slideshow_act_image=1;if(images_array.length>1){var c=1;var n=images_array[c-1][0]+image_space_first+(3*(image_space/2))-(viewport_width-images_array[c][0])/2;var g=c;var f=n-((viewport_width-images_array[c][0])/2)-(image_space/2)-viewport_width;preload_next_images(n,f,g,a);var e=images_array.length;var j=((viewport_width-images_array[e-1][0])/2)+images_array[e-1][0]+image_space-((viewport_width-images_array[e-2][0])/2);var b=images_array.length;var l=j+((viewport_width-images_array[e-1][0])/2)-(image_space/2)+viewport_width;preload_previous_images(j,l,b,a)}else{var c=1;var n=images_array[c-1][0]+image_space_first+(3*(image_space/2))-(viewport_width-images_array[c-1][0])/2;var g=c;var f=n-((viewport_width-images_array[c-1][0])/2)-(image_space/2)-viewport_width;preload_next_images(n,f,g,a)}jQuery("#content_loading_div").fadeOut("slow")}})}function load_contact(){jQuery("#content_div").html("");jQuery("#navi_ul").attr("class","");jQuery("#navi_ul").addClass("contact_active");jQuery.ajax({type:"get",url:"/xml/contact.xml",dataType:"xml",cache:false,error:function(c,b,a){console.log(c.responseText)},beforeSend:function(){jQuery("#content_div").append('<div id="content_loading_div"></div>')},complete:function(){},success:function(a){var b=a.getElementsByTagName("content_contact")[0].firstChild.nodeValue;jQuery("#content_div").append('<div id="contact_div">'+b+"</div>");jQuery("#content_loading_div").fadeOut("slow")}})};
