- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
$(document).ready(function(){
var m;
function fourSize()
{
var size=$(window).width();
if (size<'1210') { css='1000'; m=160;}
if ((size>='1210')&&(size<'1296')) {css='1240';m=160;}
if ((size>='1296')&&(size<'1370')) {css='1320';m=180;}
if(size>='1370') {css='1400';m=180;}
$('#four-size').attr({ href: 'css/styles_'+css+'.css'});marginFoot();
}
function marginFoot()
{
w=$(window).width();
h=$(window).height();
if (h<500) $('.center').css('height',($(window).height()-m));
if ((h>500 && w<1210)||(h>600 && w>1210)){
$('.center').css('height',($(window).height()-m)); //alert($(document).height()-180);
margin=$(window).height()-$('.center').height()-m;
$('.foot').css('margin-top',margin);}
}
fourSize();marginFoot();
$(window).resize(function(){fourSize();})
})