// Part 1 - Styles
var curdate = new Date()
var curyear = curdate.getYear()
var curmonth=curdate.getMonth();
function openwin(URL,W,H)
{
	if(W && H)
		Mywin=window.open (URL,"hello","status=0,scrollbars=1,menubar=0,directories=0,resize=0, width="+W+", height="+H); 
	else
		Mywin=window.open (URL,"hello",'status=1,scrollbars=1,menubar=0,directories=0 resize=yes'); 
	
	//Mywin.moveTo((screen.width-W)/2,(screen.height-H)/2); 
}
function get_sechedule(deg,year,sem)
{
var sem_year;  //semmester's year

if(sem==3)
	sem_year=curyear;
if(sem==1 && curmonth>2)
	sem_year=curyear+1
else
	sem_year=curyear;
if(sem==2)
{
	if(curmonth==12 || curmonth==11 || curmonth==10)
		sem_year=curyear+1
	else
		sem_year=curyear
		
}

str="html/sched_wait.php?url=http://bgu4u.bgu.ac.il/pls/scwp/!sc.personalCourseListRepHD?rn_year_4_cons="+sem_year+"&rn_semester_4_cons="+sem+"&rn_institution=0&rn_year_in_degree="+year+"&rn_degree_level="+deg+"&rn_department=361&rn_gen_courses=2";

return str;
}

function iframe_link(URL)
{
	str=URL.toLowerCase()
	if(str.indexOf("http://")==-1 && str.indexOf("www"))
		document.getElementById('iframe_data').src=URL;
}
var MAIN_STYLE = {
    border:0,              // item's border width, pixels; zero means "none";
    shadow:0,              // item's shadow size, pixels; zero means "none"
    color:{
        border:"#666666",  // color of the item border, if any;
        shadow:"#DBD8D1",  // color of the item shadow, if any;
        bgON:"",      // background color for the items;
        bgOVER:"#233653"   // background color for the item
                           // which is under mouse right now;
    },
    css:{
         ON:"botton_on",           // CSS class for items;
        OVER:"botton_over"          // CSS class  for item which is under mouse;
    },
    transition:{
        //fadeIn:'progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.3)',
           fadeIn:'progid:DXImageTransform.Microsoft.Fade (duration=0.3)',

        fadeOut:'progid:DXImageTransform.Microsoft.Fade (duration=0.3)'
    }


};
var SUB_STYLE = {
   border:0,              // item's border width, pixels; zero means "none";
    shadow:0,              // item's shadow size, pixels; zero means "none"
    color:{
		color:"#FFFFFF",
        border:"#666666",  // color of the item border, if any;
        shadow:"#DBD8D1",  // color of the item shadow, if any;
        bgON:"8697AD",      // background color for the items;
        bgOVER:"#233653"   // background color for the item
                           // which is under mouse right now;
    },
    css:{
        ON:"botton_on",           // CSS class for items;
        OVER:"botton_over"          // CSS class  for item which is under mouse;
    }


};
