// JavaScript Document
function updateMonth(){
	var d = new Date();
	var monthNo = d.getMonth()+1
	var urlB = "images/sign_deals_"+monthNo+".jpg"	
	document.getElementById('345').src = urlB;
}

function updateMonthAcc(){
	var d = new Date();
	var monthNo = d.getMonth()+1
	var urlB = "images/button_acess_dotm_"+monthNo+".jpg"	
	document.getElementById('dealsofmonth').src = urlB;
}

function updateMonthAcc_over(){
	var d = new Date();
	var monthNo = d.getMonth()+1
	var urlB = "images/button_acess_dotm_on_"+monthNo+".jpg"	
	document.getElementById('dealsofmonth').src = urlB;	
}

function updateMonthHome(){
	var d = new Date();
	var monthNo = d.getMonth()+1
	var urlB = "images/button_dealsofthemonth_"+monthNo+".jpg"	
	document.getElementById('dealsofmonth').src = urlB;
}

function updateMonthHome_over(){
	var d = new Date();
	var monthNo = d.getMonth()+1
	var urlB = "images/button_dealsofthemonth_on_"+monthNo+".jpg"	
	document.getElementById('dealsofmonth').src = urlB;
}

function photo_change(url){
	document.getElementById('dealsofmonth').src = "images/"+url;
}
function photo_change1(url){
	document.getElementById('index_news').src = "images/"+url;
}
function photo_change2(url){
	document.getElementById('index_cars').src = "images/"+url;
}
function photo_change3(url){
	document.getElementById('usedawnings').src = "images/"+url;
}
function photo_change4(url){
	document.getElementById('dealsofmonth').src = "images/"+url;
}
function photo_change5(url){
	document.getElementById('selltous').src = "images/"+url;
}
function contactSwapOver(divID){
	newImage = "url(images/button_contact_on.gif)";
	document.getElementById(divID).style.backgroundImage = newImage;
}

function contactSwapOut(divID){
	newImage = "url(images/button_contact.gif)";
    document.getElementById(divID).style.backgroundImage = newImage;
}



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function openPage(page) {window.open(page,null,"height=400,width=430,status=yes,toolbar=no,menubar=no,location=no");}
function openPageW(page) {window.open(page,null,"height=400,width=550,status=yes,toolbar=no,menubar=no,location=no");}

function show_spec(){
		document.getElementById('safari_history').style.display = 'none'; 
		document.getElementById('safari_spec').style.display = 'block'; 	
}


