﻿// JScript File

// JavaScript Document
window.defaultStatus="TestVot. Testează-ţi votul!";

function findObj(n) { 
    return document.getElementById(n); 
}

function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

/***********************************************
* Start : topMenu
***********************************************/
function show(page) {
	location.href = page;	
}

function topMIover(ob){	
	obj=findObj(ob); 	
	obj.className = "menuItemOver";	
}


function topMInormal(){				
	obj.className = "menuItem";
}
/***********************************************
* Stop : topMenu
***********************************************/

/***********************************************
* Start : usual SwapImage for general use
***********************************************/
function usualSwapImage() { // Functie folosita in general pentru image swap
  var a=usualSwapImage.arguments; 
  if ((z=findObj(a[0]))!=null){
  	if(!z.oSrc) 
		z.oSrc=z.src; 
	z.src=a[1];
	}
}

function usualImgRestore() { // Functie pentru restore in general
   	z.src=z.oSrc;	
}
/***********************************************
* Stop : usual SwapImage for general use
***********************************************/

/***********************************************
* Start : boxInfoMouseOver
***********************************************/
function setBoxOver(ob){	
	bObj=findObj(ob); 	
	bObj.className = "boxInfoOver";	
}


function setBoxNormal(){				
	bObj.className = "boxInfoNormal";
}
/***********************************************
* Stop : boxInfoMouseOver
***********************************************/