

/*
Left-Right image slideshow Script-
By Dynamic Drive (www.dynamicdrive.com)
For full source code, terms of use, and 100's more scripts, visit http://dynamicdrive.com
*/

///////configure the below four variables to change the style of the slider///////
//set the scrollerwidth and scrollerheight to the width/height of the LARGEST image in your slideshow!
var scrollerwidth='285px'
var scrollerheight='196px'
var scrollerbgcolor=''
//3000 miliseconds=3 seconds
var pausebetweenimages=3000


//configure the below variable to change the images used in the slideshow. If you wish the images to be clickable, simply wrap the images with the appropriate <a> tag
var slideimages=new Array()
slideimages[0]='<a href="http://www.cnn.com"><img src="cl/clt1.jpg" border=0"></a>'
slideimages[1]='<img src="cl/clt1.jpg">'
slideimages[2]='<img src="cl/clt2.jpg">'
slideimages[3]='<img src="cl/clt3.jpg">'
slideimages[4]='<img src="cl/clt4.jpg">'
slideimages[5]='<img src="cl/clt6.jpg">'
slideimages[6]='<img src="cl/clt7.jpg">'
slideimages[7]='<img src="cl/clt8.jpg">'

//extend this list

///////Do not edit pass this line///////////////////////
     
var ie=document.all
var dom=document.getElementById

if (slideimages.length>1)
i=2
else
i=0

function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.left>0&&tlayer.left<=5){
tlayer.left=0
setTimeout("move1(tlayer)",pausebetweenimages)
setTimeout("move2(document.main.document.second)",pausebetweenimages)
return
}
if (tlayer.left>=tlayer.document.width*-1){
tlayer.left-=5
setTimeout("move1(tlayer)",50)
}
else{
tlayer.left=parseInt(scrollerwidth)+5
tlayer.document.write(slideimages[i])
tlayer.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.left>0&&tlayer2.left<=5){
tlayer2.left=0
setTimeout("move2(tlayer2)",pausebetweenimages)
setTimeout("move1(document.main.document.first)",pausebetweenimages)
return
}
if (tlayer2.left>=tlayer2.document.width*-1){
tlayer2.left-=5
setTimeout("move2(tlayer2)",50)
}
else{
tlayer2.left=parseInt(scrollerwidth)+5
tlayer2.document.write(slideimages[i])
tlayer2.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move3(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.left)>0&&parseInt(tdiv.style.left)<=5){
tdiv.style.left=0+"px"
setTimeout("move3(tdiv)",pausebetweenimages)
setTimeout("move4(scrollerdiv2)",pausebetweenimages)
return
}
if (parseInt(tdiv.style.left)>=tdiv.offsetWidth*-1){
tdiv.style.left=parseInt(tdiv.style.left)-5+"px"
setTimeout("move3(tdiv)",50)
}
else{
tdiv.style.left=scrollerwidth
tdiv.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.left)>0&&parseInt(tdiv2.style.left)<=5){
tdiv2.style.left=0+"px"
setTimeout("move4(tdiv2)",pausebetweenimages)
setTimeout("move3(scrollerdiv1)",pausebetweenimages)
return
}
if (parseInt(tdiv2.style.left)>=tdiv2.offsetWidth*-1){
tdiv2.style.left=parseInt(tdiv2.style.left)-5+"px"
setTimeout("move4(scrollerdiv2)",50)
}
else{
tdiv2.style.left=scrollerwidth
tdiv2.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}
}

function startscroll(){
if (ie||dom){
scrollerdiv1=ie? first2 : document.getElementById("first2")
scrollerdiv2=ie? second2 : document.getElementById("second2")
move3(scrollerdiv1)
scrollerdiv2.style.left=scrollerwidth
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.left=parseInt(scrollerwidth)+5
document.main.document.second.visibility='show'
}
}

window.onload=startscroll







function validation()
    {
if(document.form1.name.value=="")
        {alert("Please Enter Name");
        document.form1.name.focus();
        return false;
        }
		if(document.form1.email.value=="")
        {alert("Please Enter  Email-Address");
        document.form1.email.focus();
        return false;
        }
		 var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
		 var address = document.form1.email.value;
   if(reg.test(address) == false) {
      alert('Invalid Email Address');
      return false;
        }
		
		if(document.form1.massage.value=="")
        {alert("Please Enter  message");
        document.form1.massage.focus();
        return false;
        }		
			
		return true;   
    }


function validation1()
    {
if(document.form2.name.value=="")
        {alert("Please Enter Name");
        document.form2.name.focus();
        return false;
        }
		if(document.form2.email.value=="")
        {alert("Please Enter  Email-Address");
        document.form2.email.focus();
        return false;
        }
		 var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
		 var address = document.form2.email.value;
   if(reg.test(address) == false) {
      alert('Invalid Email Address');
      return false;
        }
		
		if(document.form2.massage.value=="")
        {alert("Please Enter  message");
        document.form2.massage.focus();
        return false;
        }		
			
		return true;   
    }




/*Important Function to blend the tabs in and out*/
function blendoff(idname) {document.getElementById(idname).style.display = 'none';}
function blendon(idname) {document.getElementById(idname).style.display = 'block';}




/*Function for our Tabmenu with 4 Tabs*/
function swichtabs(wert) {
	if (wert=='1'){
		document.getElementById('tablink1').className='tab1 tabactive';
		document.getElementById('tablink2').className='tab2';
	    document.getElementById('tablink3').className='tab3';
		document.getElementById('tablink4').className='tab4';
	}else if (wert=='2'){
		document.getElementById('tablink1').className='tab1';
		document.getElementById('tablink2').className='tab2 tabactive';
	    document.getElementById('tablink3').className='tab3';
		document.getElementById('tablink4').className='tab4';
	}else if (wert=='3'){
		document.getElementById('tablink1').className='tab1';
		document.getElementById('tablink2').className='tab2';
	    document.getElementById('tablink3').className='tab3 tabactive';
		document.getElementById('tablink4').className='tab4';
	}	else if (wert=='4'){
		document.getElementById('tablink1').className='tab1';
		document.getElementById('tablink2').className='tab2';
		document.getElementById('tablink3').className='tab3';
	    document.getElementById('tablink4').className='tab4 tabactive';
	}
}


      
            $(function() {

                $('#container-1').tabs();
                $('#container-2').tabs(2);
                $('#container-3').tabs({ fxSlide: false });
                $('#container-4').tabs({ fxFade: false, fxSpeed: 'fast' });
                $('#container-5').tabs({ fxSlide: false, fxFade: false, fxSpeed: 'normal' });
                $('#container-6').tabs({
                    fxFade: false,
                    fxSpeed: 'fast',
                    onClick: function() {
                        alert('onClick');
                    },
                    onHide: function() {
                        alert('onHide');
                    },
                    onShow: function() {
                        alert('onShow');
                    }
                });
                $('#container-7').tabs({ fxAutoHeight: true });
                $('#container-8').tabs({ fxShow: { height: 'show', opacity: 'show' }, fxSpeed: 'normal' });
                $('#container-9').tabs({ remote: true });
                $('#container-10').tabs();
                $('#container-11').tabs({ disabled: [3] });

                $('<p><a href="#">Disable third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {
                    $(this).parents('div').eq(1).disableTab(3);
                    return false;
                });
                $('<p><a href="#">Activate third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {
                    $(this).parents('div').eq(1).triggerTab(3);
                    return false;
                });
                $('<p><a href="#">Enable third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {
                    $(this).parents('div').eq(1).enableTab(3);
                    return false;
                });

            });
    
		
		
		
            $(function() {

                $('#container-11').tabs();
                $('#container-21').tabs(2);
                $('#container-31').tabs({ fxSlide: false });
                $('#container-41').tabs({ fxFade: false, fxSpeed: 'fast' });
                $('#container-51').tabs({ fxSlide: false, fxFade: false, fxSpeed: 'normal' });
                $('#container-61').tabs({
                    fxFade: false,
                    fxSpeed: 'fast',
                    onClick: function() {
                        alert('onClick');
                    },
                    onHide: function() {
                        alert('onHide');
                    },
                    onShow: function() {
                        alert('onShow');
                    }
                });
                $('#container-71').tabs({ fxAutoHeight: true });
                $('#container-81').tabs({ fxShow: { height: 'show', opacity: 'show' }, fxSpeed: 'normal' });
                $('#container-91').tabs({ remote: true });
                $('#container-101').tabs();
                $('#container-111').tabs({ disabled: [3] });

                $('<p><a href="#">Disable third tab<\/a><\/p>').prependTo('#fragment-281').find('a').click(function() {
                    $(this).parents('div').eq(1).disableTab(3);
                    return false;
                });
                $('<p><a href="#">Activate third tab<\/a><\/p>').prependTo('#fragment-281').find('a').click(function() {
                    $(this).parents('div').eq(1).triggerTab(3);
                    return false;
                });
                $('<p><a href="#">Enable third tab<\/a><\/p>').prependTo('#fragment-281').find('a').click(function() {
                    $(this).parents('div').eq(1).enableTab(3);
                    return false;
                });

            });
      
		

       
       
      
  function reloadCaptcha(imageName)
  {
    var randomnumber=Math.floor(Math.random()*1001); // generate a random number to add to image url to prevent caching
    document.images[imageName].src = document.images[imageName].src + '&amp;rand=' + randomnumber; // change image src to the same url but with the random number on the end
  }
  
