NowDate = new Date();
NowYear = NowDate.getFullYear(); //Now Year?
NowMonth = NowDate.getMonth() + 1; //Now Month?
NowDay = NowDate.getDate(); //Now Day?
NowHours = NowDate.getHours(); //Now Hour?
NowMinutes = NowDate.getMinutes(); //Now Minute?
// *******************************************************
// header Pulldown
// *******************************************************
$(function(){
$("#header_links ul li").hover(function() {
$(this).children('p').slideToggle(300);
}, function() {
$(this).children('p').slideToggle(200);
});
$(".movie img").click(function() {
$(this).hide();
$(this).next().show();
});
});
// *******************************************************
// Link On
// *******************************************************
DomainURL = "http://www.royalkaila-wedding.com/";
function link_on(ID,FolderFlag){
menu_list = document.getElementById(ID).getElementsByTagName("a");
for(i=0; i
if( FolderFlag ){
if( location.href == DomainURL && menu_list[i].href == DomainURL ){
menu_list[i].className = "on";
}else if( location.href.indexOf(menu_list[i].href) != -1 && menu_list[i].href != DomainURL ){
menu_list[i].className = "on";
}
}else{
if( location.href == menu_list[i].href ){
menu_list[i].className = "on";
menu_list[i].parentNode.style.display = "";
if(menu_list[i].parentNode.parentNode.getElementsByTagName("h3")[0] && menu_list[i].href != "" ){
menu_list[i].parentNode.parentNode.getElementsByTagName("h3")[0].className = "on";
}
}
}
}
}
// ********************************************************
// Open Close
// ********************************************************
function openclose(ID){
if(document.getElementById(ID).style.display == "none"){
document.getElementById(ID).style.overflow = "hidden";
document.getElementById(ID).style.display = "";
BoxHeight = document.getElementById(ID).offsetHeight;
document.getElementById(ID).style.height = "0px";
for(i=1; i<=10; i++){
setTimeout("document.getElementById('" + ID + "').style.height='" + (BoxHeight/10)*i + "px'" , i*10 );
}
setTimeout("document.getElementById('" + ID + "').style.height=''" , 110 );
}else{
BoxHeight = document.getElementById(ID).offsetHeight;
document.getElementById(ID).style.overflow = "hidden";
for(i=1; i<=10; i++){
setTimeout("document.getElementById('" + ID + "').style.height='" + ((BoxHeight/10)*(10 - i)) + "px'" , i*10 );
}
setTimeout("document.getElementById('" + ID + "').style.height=''" , 110 );
setTimeout("document.getElementById('" + ID + "').style.display='none'" , 110 );
}
}
function open_menu(Obj){
Parents = Obj.parentNode;
Ptag = Parents.getElementsByTagName("p");
if(Ptag[0].style.display == "none"){
Ptag[0].style.overflow = "hidden";
Ptag[0].style.display = "";
BoxHeight = Ptag[0].offsetHeight -20;
Ptag[0].style.height = "0px";
for(i=1; i<=10; i++){
setTimeout("Ptag[0].style.height='" + (BoxHeight/10)*i + "px'" , i*20 );
}
setTimeout("Ptag[0].style.height=''" , 210 );
Obj.className = "on"
}else{
BoxHeight = Ptag[0].offsetHeight -10;
Ptag[0].style.overflow = "hidden";
for(i=1; i<=10; i++){
setTimeout("Ptag[0].style.height='" + ((BoxHeight/10)*(10 - i)) + "px'" , i*20 );
}
setTimeout("Ptag[0].style.height=''" , 210 );
setTimeout("Ptag[0].style.display='none'" , 210 );
Obj.className = "";
}
}
// ********************************************************
// Common Popup
// ********************************************************
function w_open( URL , winX , winY ){
window.open( URL ,"_blank","width=" + winX + ",height=" + winY + ",location=no,menubar=no,scrollbars=yes,status=no,toolbar=no");
}
// ********************************************************
// Route Change
// ********************************************************
function route_change( Num,MaxNUM ){
thumbs = document.getElementById("acc_links").getElementsByTagName("a");
for( i=0; i= $(window).height()
|| anchor.offset().top > $(window).height()
|| $(document).width()-anchor.offset().left >= $(window).width()
|| anchor.offset().left > $(window).width()){
$('html, body').animate({
scrollTop: anchor.offset().top,
scrollLeft: anchor.offset().left
}, speed, easing, function(){
if(redirect){
window.location = url
}
});
}
return false;
});
}
}
}
});
}
});
})(jQuery);
$(document).ready(function(){
$.smoothAnchors("fast");
});
function uncoverIFrame(passedID)
{ document.getElementById(passedID).src += "?autoplay=1";
preventDefault();
return;
}