ok i had a thought and i know that i can do it with jquery but dont know if it could be done with php.
i would like to create a function where, if called it could see if the necessary files and code that it needs are in the head of the document and if not then append the code it needs just right before the /head tag.
or this could sound too good to be true to happen like that.
thanks in advance