Blame | Last modification | View Log | RSS feed
function changeImageStatus(value){var statusValue=value;var count=1;var countValue=parseInt(document.getElementById('preCount').innerHTML);if(statusValue=="Next" && countValue!=3){count=parseInt(countValue+1);document.getElementById('preCount').innerHTML=count;}else if(statusValue=="Next" && countValue==3){countValue=0;count=parseInt(countValue+1);document.getElementById('preCount').innerHTML=count;}if(statusValue=="Previous" && countValue!=1){count=parseInt(countValue-1);document.getElementById('preCount').innerHTML=count;}else if(statusValue=="Previous" && countValue==1){countValue=0;count=parseInt(countValue+3);document.getElementById('preCount').innerHTML=count;}}function changeImageStatusPageInfo(value, refdiv){var statusValue=value;var count=1;var countValue=parseInt(document.getElementById(refdiv).innerHTML);if(statusValue=="Next" && countValue!=3){count=parseInt(countValue+1);document.getElementById(refdiv).innerHTML=count;}else if(statusValue=="Next" && countValue==3){countValue=0;count=parseInt(countValue+1);document.getElementById(refdiv).innerHTML=count;}if(statusValue=="Previous" && countValue!=1){count=parseInt(countValue-1);document.getElementById(refdiv).innerHTML=count;}else if(statusValue=="Previous" && countValue==1){countValue=0;count=parseInt(countValue+3);document.getElementById(refdiv).innerHTML=count;}}function changeImageStatus1(value){var statusValue=value;var count=1;var countValue=parseInt(document.getElementById('preCount1').innerHTML);if(statusValue=="Next" && countValue!=3){count=parseInt(countValue+1);document.getElementById('preCount1').innerHTML=count;}else if(statusValue=="Next" && countValue==3){countValue=0;count=parseInt(countValue+1);document.getElementById('preCount1').innerHTML=count;}if(statusValue=="Previous" && countValue!=1){count=parseInt(countValue-1);document.getElementById('preCount1').innerHTML=count;}else if(statusValue=="Previous" && countValue==1){countValue=0;count=parseInt(countValue+3);document.getElementById('preCount1').innerHTML=count;}}//run the currently selected effectfunction runEffect(){$("#tab2").hide();$("#tab3").hide();$("#tab1").show();$("#tabss-2").hide();$("#tabss-3").hide();$("#tabss-1").show();//get effect type fromvar selectedEffect = 'slide';//most effect types need no options passed by defaultvar options = {};//check if it's scale, transfer, or size - they need options explicitly setif(selectedEffect == 'scale'){ options = {percent: 0}; }else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }//run the effect$("#vtab-1").effect(selectedEffect,options,500,callbackonload);}//callback function to bring a hidden box backfunction callbackonload(){setTimeout(function(){$("#tabss-2").hide();$("#tabss-3").hide();$("#vtab-1:hidden").removeAttr('style').hide().fadeIn();}, 1000);}/**/var i=true;function runEffect1(){$("#tab1").hide();$("#tab3").hide();$("#tab2").show();$("#tabss-1").hide();$("#tabss-3").hide();$("#tabss-2").show();document.getElementById("tab2").style.background="background-image: url('images/tab_selc.gif') no-repeat";var selectedEffect = 'slide';//most effect types need no options passed by defaultvar options = {};//check if it's scale, transfer, or size - they need options explicitly setif(selectedEffect == 'scale'){ options = {percent: 0}; }else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }//run the effect$("#tabss-2").effect(selectedEffect,options,500,callback1);if(i){i=false;$('#loopedSlider1').loopedSlider();}}//callback function to bring a hidden box backfunction callback1(){setTimeout(function(){$("#tabss-1").hide();$("#tabss-3").hide();$("#tabss-2:hidden").removeAttr('style').hide().fadeIn();}, 50);}function runEffect2(){$("#tab2").hide();$("#tab3").hide();$("#tab1").show();$("#tabss-2").hide();$("#tabss-3").hide();$("#tabss-1").show();var selectedEffect = 'slide';//most effect types need no options passed by defaultvar options = {};//check if it's scale, transfer, or size - they need options explicitly setif(selectedEffect == 'scale'){ options = {percent: 0}; }else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }//run the effect$("#tabss-1").effect(selectedEffect,options,500,callback2);}//callback function to bring a hidden box backfunction callback2(){setTimeout(function(){$("#tabss-2").hide();$("#tabss-3").hide();$("#tabss-1:hidden").removeAttr('style').hide().fadeIn();}, 50);}function runEffect3(){$("#tab1").hide();$("#tab2").hide();$("#tab3").show();$("#tabss-1").hide();$("#tabss-2").hide();$("#tabss-3").show();document.getElementById("tab3").style.background="background-image: url('images/tab_selc.gif') no-repeat";var selectedEffect = 'slide';//most effect types need no options passed by defaultvar options = {};//check if it's scale, transfer, or size - they need options explicitly setif(selectedEffect == 'scale'){ options = {percent: 0}; }else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }//run the effect$("#tabss-3").effect(selectedEffect,options,500,callback3);}//callback function to bring a hidden box backfunction callback3(){setTimeout(function(){$("#tabss-1").hide();$("#tabss-2").hide();$("#tabss-3:hidden").removeAttr('style').hide().fadeIn();}, 50);}function selectMenu(id){$("#b").show();$("#a").show();$("#d").show();$("#b1").hide();$("#a1").hide();$("#d1").hide();id1="#"+id;$(id1).hide();id2="#"+id+"1";$(id2).show();}