// JavaScript Document
$(document).ready(function(){
$('#pop_back').hide();
$('#popup').hide();
$('#popup15').hide();
$('#popup16').hide();
$('#popup17').hide();
$('#popup18').hide();
$('#popup11').hide();
$('#popup6').hide();
$('#popup8').hide();
$('#popup9').hide();
$('#pop_back_sign').hide();
$('#popup_sign').hide();
var height=$(document).height();
var width=$(document).width();
function popup(wid, hei, type){
if (type==1){
var L=((width/2)-(wid/2));
var T=((height/2)-(hei/2));
}else if (type==2){
var T=100;
var L=((width/2)-(wid/2));
}
$('#pop_back').css({
'width':width,
'height':height,
'position':'absolute',
'top':'0px',
'left':'0px',
'background-color':'#000',
'opacity':'0.2',
'display':'none'
})
$('#popup').css({
'width':wid,
'height':hei,
'position':'absolute',
'top':T,
'left':L,
'background':'url(/images/popup_rep_bg.gif) bottom repeat-x #FFF',
'display':'none',
'padding':'15px',
'padding-right':'0px',
'border':'2px solid #D0D0D0',
'-moz-border-radius':'4px',
'-webkit-border-radius':'4px'
})	
$('#pop_back').fadeIn();
$('#popup').fadeIn();
}
function pop_close(){
$('#pop_back').fadeOut();
$('#popup').fadeOut();
}

//	test

function popup6(wid, hei, type){
if (type==1){
var L=((width/2)-(wid/2));
var T=((height/2)-(hei/2));
}else if (type==2){
var T=100;
var L=((width/2)-(wid/2));
}
else if (type==3){
var L=((width/2)-(wid/2));
var T=((height/2)-(hei/2));
}


$('#pop_back6').css({
'width':width,
'height':height,
'position':'absolute',
'top':'0px',
'left':'0px',
'background-color':'#000',
'opacity':'0.2',
'display':'none'
})
$('#popup6').css({
'width':wid,
'height':hei,
'position':'absolute',
'top':T,
'left':L,

'display':'none',
'padding-top':'200px',
'padding-right':'0px',
'border':'0px solid #D0D0D0',
'-moz-border-radius':'4px',
'-webkit-border-radius':'4px'
})	
$('#pop_back6').fadeIn();
$('#popup6').fadeIn();
}
function pop_close6(){
$('#pop_back6').fadeOut();
$('#popup6').fadeOut();
}
function popup9(wid, hei){
var T=134;
var L=((width/2)-484);
$('#pop_back9').css({
'width':width,
'height':height,
'position':'absolute',
'top':'0px',
'left':'0px',

'display':'none'
})
$('#popup9').css({
'width':wid,
'height':hei,
'position':'absolute',
'top':T,
'left':L,
'display':'none',
'padding-top':'0px',
'padding-right':'0px',
'border':'0px solid #D0D0D0',
'-moz-border-radius':'4px',
'-webkit-border-radius':'4px'
})	
$('#pop_back9').fadeIn();
$('#popup9').fadeIn();
}
function pop_close15(){
$('#pop_back9').fadeOut();
$('#popup9').fadeOut();
}
function popup15(wid, hei){
var T=5;
var L=((width/2)-300);
$('#pop_back15').css({
'width':width,
'height':height,
'position':'absolute',
'top':'0px',
'left':'0px',

'display':'none'
})
$('#popup15').css({
'width':wid,
'height':hei,
'position':'absolute',
'top':T,
'left':L,
'display':'none',
'padding-top':'15px',
'padding-right':'0px',
'border':'0px solid #D0D0D0',
'-moz-border-radius':'4px',
'-webkit-border-radius':'4px'
})	
$('#pop_back15').fadeIn();
$('#popup15').fadeIn();
}
function pop_close15(){
$('#pop_back15').fadeOut();
$('#popup15').fadeOut();
}
function popup16(wid, hei){
var T=5;
var L=((width/2)-300);
$('#pop_back15').css({
'width':width,
'height':height,
'position':'absolute',
'top':'0px',
'left':'0px',

'display':'none'
})
$('#popup16').css({
'width':wid,
'height':hei,
'position':'absolute',
'top':T,
'left':L,
'display':'none',
'padding-top':'15px',
'padding-right':'0px',
'border':'0px solid #D0D0D0',
'-moz-border-radius':'4px',
'-webkit-border-radius':'4px'
})	
$('#pop_back16').fadeIn();
$('#popup16').fadeIn();
}
function pop_close16(){
$('#pop_back16').fadeOut();
$('#popup16').fadeOut();
}
function popup17(wid, hei){
var T=5;
var L=((width/2)-300);
$('#pop_back17').css({
'width':width,
'height':height,
'position':'absolute',
'top':'0px',
'left':'0px',

'display':'none'
})
$('#popup17').css({
'width':wid,
'height':hei,
'position':'absolute',
'top':T,
'left':L,
'display':'none',
'padding-top':'15px',
'padding-right':'0px',
'border':'0px solid #D0D0D0',
'-moz-border-radius':'4px',
'-webkit-border-radius':'4px'
})	
$('#pop_back17').fadeIn();
$('#popup17').fadeIn();
}
function pop_close17(){
$('#pop_back17').fadeOut();
$('#popup17').fadeOut();
}
function popup8(wid, hei){
var T=217;
var L=((width/2)-215);
$('#pop_back8').css({
'width':width,
'height':height,
'position':'absolute',
'top':'0px',
'left':'0px',

'display':'none'
})
$('#popup8').css({
'width':wid,
'height':hei,
'position':'absolute',
'top':T,
'left':L,
'display':'none',
'padding-top':'0px',
'padding-right':'0px',
'border':'0px solid #D0D0D0',
'-moz-border-radius':'4px',
'-webkit-border-radius':'4px'
})	
$('#pop_back8').fadeIn();
$('#popup8').fadeIn();
}
function pop_close8(){
$('#pop_back8').fadeOut();
$('#popup8').fadeOut();
}


function popup10(wid, hei){
var T=134;
var L=((width/2)-484);
$('#pop_back10').css({
'width':width,
'height':height,
'position':'absolute',
'top':'0px',
'left':'0px',

'display':'none'
})

$('#popup10').css({
'width':wid,
'height':hei,
'position':'absolute',
'top':T,
'left':L,
'display':'none',
'padding-top':'0px',
'padding-right':'0px',
'border':'0px solid #D0D0D0',
'-moz-border-radius':'4px',
'-webkit-border-radius':'4px'
})	
$('#pop_back10').fadeIn();
$('#popup10').fadeIn();
}
function pop_close10(){
$('#pop_back10').fadeOut();
$('#popup10').fadeOut();

}


function popup18(wid, hei){
var T=175;
var L=((width/2)-482);
$('#pop_back10').css({
'width':width,
'height':height,
'position':'absolute',
'top':'0px',
'left':'0px',

'display':'none'
})

$('#popup18').css({
'width':wid,
'height':hei,
'position':'absolute',
'top':T,
'left':L,
'display':'none',
'padding-top':'0px',
'padding-right':'0px',
'border':'0px solid #D0D0D0',
'-moz-border-radius':'4px',
'-webkit-border-radius':'4px'
})	
$('#pop_back18').fadeIn();
$('#popup18').fadeIn();
}
function pop_close10(){
$('#pop_back18').fadeOut();
$('#popup18').fadeOut();

}











function popup11(wid, hei){
var T=134;
var L=((width/2)-484);
$('#pop_back10').css({
'width':width,
'height':height,
'position':'absolute',
'top':'0px',
'left':'0px',

'display':'none'
})
$('#popup11').css({
'width':wid,
'height':hei,
'position':'absolute',
'top':T,
'left':L,
'display':'none',
'padding-top':'0px',
'padding-right':'0px',
'border':'0px solid #D0D0D0',
'-moz-border-radius':'4px',
'-webkit-border-radius':'4px'
})	
$('#pop_back11').fadeIn();
$('#popup11').fadeIn();
}
function pop_close11(){
$('#pop_back11').fadeOut();
$('#popup11').fadeOut();

}
function popup12(wid, hei){
var T=134;
var L=((width/2)-484);
$('#pop_back12').css({
'width':width,
'height':height,
'position':'absolute',
'top':'0px',
'left':'0px',

'display':'none'
})
$('#popup12').css({
'width':wid,
'height':hei,
'position':'absolute',
'top':T,
'left':L,
'display':'none',
'padding-top':'0px',
'padding-right':'0px',
'border':'0px solid #D0D0D0',
'-moz-border-radius':'4px',
'-webkit-border-radius':'4px'
})	
$('#pop_back12').fadeIn();
$('#popup12').fadeIn();
}
function pop_close12(){
$('#pop_back12').fadeOut();
$('#popup12').fadeOut();

}
function popup13(wid, hei){
var T=134;
var L=((width/2)-484);
$('#pop_back13').css({
'width':width,
'height':height,
'position':'absolute',
'top':'0px',
'left':'0px',

'display':'none'
})
$('#popup13').css({
'width':wid,
'height':hei,
'position':'absolute',
'top':T,
'left':L,
'display':'none',
'padding-top':'0px',
'padding-right':'0px',
'border':'0px solid #D0D0D0',
'-moz-border-radius':'4px',
'-webkit-border-radius':'4px'
})	
$('#pop_back13').fadeIn();
$('#popup13').fadeIn();
}
function pop_close13(){
$('#pop_back13').fadeOut();
$('#popup13').fadeOut();

}
function popup_sign(wid, hei){
var T=750;
var L=((width/2)-400);
$('#pop_back_sign').css({
'width':width,
'height':height,
'position':'absolute',
'top':'0px',
'left':'0px',
'background-color':'#000',
'opacity':'0.2',
'display':'none'
})
$('#popup_sign').css({
'width':wid,
'height':hei,
'position':'absolute',
'top':T,
'left':L,
'background':'url(/images/popup_rep_bg.gif) bottom repeat-x #FFF',
'display':'none',
'padding-top':'15px',
'padding-right':'0px',
'border':'0px solid #D0D0D0',
'-moz-border-radius':'4px',
'-webkit-border-radius':'4px'
})	
$('#pop_back_sign').fadeIn();
$('#popup_sign').fadeIn();
}
function pop_close_sign(){
$('#pop_back_sign').fadeOut();
$('#popup_sign').fadeOut();
}
$('#btn_sign').click(function(){
popup_sign(500, 282);						 
})
$('#close_btn_sign').click(function(){
pop_close_sign();				 
})




$('#pop_back6').click(function(){
pop_close();				 
})
$('#pop_back15').click(function(){
pop_close15();				 
})
$('#pop_back16').click(function(){
pop_close16();				 
})

$('#close_btn6').click(function(){
pop_close6();				 
})

$('#close_btn8').click(function(){
pop_close8();				 
})
$('#close_btn9').click(function(){
pop_close9();				 
})
$('#close_btn10').click(function(){
pop_close10();				 
})
$('#close_btn15').click(function(){
pop_close15();				 
})
$('#close_btn17').click(function(){
pop_close17();				 
})
$('#close_btn18').click(function(){
pop_close17();				 
})
$('#close_btn11').click(function(){
pop_close11();				 
})
$('#close_btn12').click(function(){
pop_close12();				 
})
$('#close_btn13').click(function(){
pop_close13();				 
})
//	test
$('#pop_back').click(function(){
pop_close();				 
})

$('#btn1').click(function(){
popup(400, 200, 1);						 
})
$('#btn2').click(function(){
popup(400, 200, 1);						 
})
$('#btn3').click(function(){
popup(400, 200, 2);						 
})
$('#btn6').click(function(){
popup6(800, 800, 3);						 
})
$('#btn8').click(function(){
popup8(710, 600);						 
})
$('#btn9').click(function(){
popup9(800, 600, 3);						 
})
$('#btn11').click(function(){
popup11(800, 600, 3);						 
})
$('#btn12').click(function(){
popup12(800, 600, 3);						 
})
$('#btn13').click(function(){
popup13(800, 600, 3);						 
})

$('#btn15').click(function(){
popup15(600, 600, 3);						 
})
$('#btn16').click(function(){
popup16(600, 500, 3);						 
})
$('#btn17').click(function(){
popup17(600, 600, 3);						 
})
$('#btn18').click(function(){
popup18(800, 600, 3);						 
})

$('#btn10').click(function(){
popup10(800, 438, 3);						 
})
$('#closer').click(function(){
pop_close();				 
})
$('#close_btn').click(function(){
pop_close();				 
})
})
$(document).ready(function(){

$('#radio').click(function(){

$('.bannerradio').slideToggle("slow");

})
})



